]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - lib/ext2fs/ext_attr.c
e2fsck: ea_inode hash validation
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)
commit2477e163f8a052c7fad9f361ad2c1f8d54c18eff
tree09e2a8ae666d7b6f1a0c93b46e5fe1c2bfc2a002
parent5b72578279fe2470e682692a15d70a43d9289e0f
e2fsck: ea_inode hash validation

In original implementation of ea_inode feature, each xattr inode had
a single parent. Child inode tracked the parent by storing its inode
number in i_mtime field. Also, child's i_generation matched parent's
i_generation.

With deduplication support, xattr inodes can now be shared so a single
backpointer is not sufficient to achieve strong binding. This is now
replaced by hash validation.

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