diff options
| author | Darrick J. Wong <darrick.wong@oracle.com> | 2015-11-30 15:22:07 -0500 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2015-11-30 15:22:07 -0500 |
| commit | f680db654b2f095712f2528dc178eea5cfd6401f (patch) | |
| tree | a8c6f2281b25843ba6d4b108364ea71880210b9c /e2fsck/problem.c | |
| parent | c5b3ae7fb5d58dd12a1e02c2443bad32c8a76150 (diff) | |
| download | platform_external_e2fsprogs-f680db654b2f095712f2528dc178eea5cfd6401f.tar.gz platform_external_e2fsprogs-f680db654b2f095712f2528dc178eea5cfd6401f.tar.bz2 platform_external_e2fsprogs-f680db654b2f095712f2528dc178eea5cfd6401f.zip | |
e2fsck: zap extent-format inode with no extent header
The kernel requires all inodes with the extent flag set to have a
valid extent tree header in i_block. The ext2fs_extent_open2 prefers
to initialize the header if i_block is zeroed, but e2fsck never writes
the new header to disk. Since the kernel won't create inodes with the
flag and no header anyway, zap such files.
Reported-by: Bo Branten <bosse@acc.umu.se>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'e2fsck/problem.c')
| -rw-r--r-- | e2fsck/problem.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/e2fsck/problem.c b/e2fsck/problem.c index f442a330d..e78314817 100644 --- a/e2fsck/problem.c +++ b/e2fsck/problem.c @@ -987,6 +987,11 @@ static struct e2fsck_problem problem_table[] = { N_("@i %i logical @b %b (physical @b %c) violates cluster allocation rules.\nWill fix in pass 1B.\n"), PROMPT_NONE, 0 }, + /* Inode has corrupt extent header */ + { PR_1_MISSING_EXTENT_HEADER, + N_("@i %i has corrupt @x header. "), + PROMPT_CLEAR_INODE, 0 }, + /* Pass 1b errors */ /* Pass 1B: Rescan for duplicate/bad blocks */ |
