Whamcloud - gitweb
libext2fs: zero hash in ibody extended attributes
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 29 Mar 2015 04:12:53 +0000 (00:12 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Mar 2015 04:12:53 +0000 (00:12 -0400)
commitce93d0ea3d78fb1c7550e6458f9b575bae6881ab
tree1cfa6394117d7fd1904ef70b77504a33734a3bcc
parentdbb328576d7b66d2e6cb6c13548b1f6bb3afb074
libext2fs: zero hash in ibody extended attributes

The kernel never updates the extended attribute hash value for
attributes stored in the inode.  However, fsck has always checked this
value (if it's nonzero) and will complain if the hash doesn't match
the xattr.  Therefore, always zero the hash value when writing to
in-ibody xattrs to avoid creating "corrupt" attribute errors
downstream.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/ext_attr.c