Whamcloud - gitweb
LU-12481 osd-ldiskfs: allow full 64KB xattr size 52/35352/2
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 28 Jun 2019 00:53:04 +0000 (18:53 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 12 Jul 2019 05:22:44 +0000 (05:22 +0000)
commitda0501850bbe8618b474ca18878b8b260335f6bf
tree421ba96964a8b1e43dd865b8d488ab03af4d2d9e
parent406b1720df422cf0a020b7a0e529683e9f262672
LU-12481 osd-ldiskfs: allow full 64KB xattr size

When the 'ea_inode' feature is enabled, allow the full 64KB xattr
size, since the xattr data is stored directly in the ea_inode data
blocks, while the ext4_xattr_entry and ext4_xattr_hdr structures are
stored separately in the parent inode or external xattr block.

This avoids errors on the client trying to set a full-sized inode:

    setfattr: /mnt/lustre/f61.conf-sanity: Argument list too long

Fixes: 3ec712bd183a ("LU-11868 osd: Set max ea size to XATTR_SIZE_MAX")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I1320c32af98ab0feeeb147d8dbbc66ec7d1b8e1f
Reviewed-on: https://review.whamcloud.com/35352
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-ldiskfs/osd_handler.c
lustre/tests/conf-sanity.sh