]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: add test for ea_inode feature
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)
commit76d1914303275912d70dd4f01fff1cc552a244f8
treee9508afb75f381b8f86ec36e673d35e19a5aed9a
parent5c5685d163374bb3b3f148b696aec50b3fd82ce4
e2fsck: add test for ea_inode feature

f_ea_inode test covers the following scenarios:

- a file that contains old Lustre-style valid ea_inode references
  in inode body and xattr block

- a file that contains new style valid ea_inode references in inode
  body and xattr block

- a file with an extended attribute that references an invalid inode
  number (e_value_inum > s_inodes_count)

- an ea entry with bad e_hash and points to an inode that does not
  have EA_INODE flag set

- an ea entry with bad e_hash but points to a valid ea_inode

- an ea entry with valid e_hash that points to an inode that is
  missing EA_INODE flag

Signed-off-by: Tahsin Erdogan <tahsin@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/f_ea_inode/expect.1 [new file with mode: 0644]
tests/f_ea_inode/expect.2 [new file with mode: 0644]
tests/f_ea_inode/image.gz [new file with mode: 0644]