Whamcloud - gitweb
e2fsck: add more checks for ea inode consistency
authorJan Kara <jack@suse.cz>
Mon, 6 May 2024 17:41:17 +0000 (19:41 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 9 May 2024 14:58:35 +0000 (10:58 -0400)
commit849a9e6e133a903db7b005854ec58b35dc947150
treead7f30a9df48d3c3ca1f1e3c5d46c3b001480fd6
parent4c2fb1cc1848790735cb6bc78b5dfb8a30d326c2
e2fsck: add more checks for ea inode consistency

Currently checking of EA inodes was rather weak. Add several more
consistency checks.

1) Check that EA inode is a regular file.
2) Check that EA_INODE feature is set if the filesystem has EA inodes.
3) Make sure that no EA inode is referenced from directory hierarchy.

Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20240506174132.12883-1-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/e2fsck.h
e2fsck/pass1.c
e2fsck/pass2.c
e2fsck/pass4.c
e2fsck/problem.c
e2fsck/problem.h