Whamcloud - gitweb
LU-7261 ldiskfs: fix large_xattr overwrite 77/16777/4
authorAlexey Lyashkov <alexey.lyashkov@seagate.com>
Fri, 9 Oct 2015 06:23:47 +0000 (00:23 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 21 Oct 2015 22:48:46 +0000 (22:48 +0000)
commit66ca2bc59135b00cd20a4e5095a23cf54cdfa2eb
treebc1b533af89770e1393b805b9b7bf598d264d512
parentabbef8759e93c31a2c88ba650a04ae9076600afa
LU-7261 ldiskfs: fix large_xattr overwrite

Handle the case where a large (external inode) xattr is being replaced
correctly.  The special case for this in ext4_set_xattr() was
incorrectly setting the offset of the xattr data within the inode
when it shouldn't have.

Add an e2fsck check of the large_xattr filesystem in conf-sanity
test_61 to verify this is working correctly.

Signed-off-by: Alexey Lyashkov <alexey.lyashkov@seagate.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I27123d7985eff0538b6f64139cebc2f0f1806260
Reviewed-on: http://review.whamcloud.com/16777
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
ldiskfs/kernel_patches/patches/rhel6.3/ext4-large-eas.patch
ldiskfs/kernel_patches/patches/rhel7/ext4-large-eas.patch
ldiskfs/kernel_patches/patches/sles11sp2/ext4-large-eas.patch
ldiskfs/kernel_patches/patches/sles12/ext4-large-eas.patch
lustre/tests/conf-sanity.sh