Whamcloud - gitweb
tune2fs: update ea_inode hashes when fs uuid changes
authorTahsin Erdogan <tahsin@google.com>
Wed, 5 Jul 2017 03:53:59 +0000 (23:53 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 5 Jul 2017 03:53:59 +0000 (23:53 -0400)
commit216d6b761acc27930dda13918e823464f8769b54
tree1822f5c183c01eecbb03567d71e8a6bacac00d3d
parent76d1914303275912d70dd4f01fff1cc552a244f8
tune2fs: update ea_inode hashes when fs uuid changes

Extended attribute inodes maintain a crc32c hash that is used for
deduplication. The crc seed derives from uuid so ea_inode hashes
must be updated when uuid changes.

The ea_inode hash is also incorporated into the xattr entry e_hash
so the entries that reference the inode also must be updated.

Signed-off-by: Tahsin Erdogan <tahsin@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/csum.c
lib/ext2fs/ext2fs.h
lib/ext2fs/ext_attr.c
misc/tune2fs.c