diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2014-07-18 15:54:30 -0700 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-07-25 08:30:11 -0400 |
commit | 9f005a90f86fccdfb9b016e39a9e9eca3e8911b2 (patch) | |
tree | 7ed94926c6512423554df991a25851848dbc1f1c /e2fsck/problem.h | |
parent | c23b2cc439a042b1e58eef3eb09668d3f7349600 (diff) | |
download | e2fsprogs-9f005a90f86fccdfb9b016e39a9e9eca3e8911b2.tar.gz |
e2fsck: collapse holes in extent-based directories
If we notice a hole in the block map of an extent-based directory,
offer to collapse the hole by decreasing the logical block # of the
extent. This saves us from pass 3's inefficient strategy, which fills
the holes by mapping in a lot of empty directory blocks.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'e2fsck/problem.h')
-rw-r--r-- | e2fsck/problem.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/e2fsck/problem.h b/e2fsck/problem.h index 6cb09cfb..d3e66ad6 100644 --- a/e2fsck/problem.h +++ b/e2fsck/problem.h @@ -624,6 +624,9 @@ struct problem_context { /* Couldn't clone file (error) */ #define PR_1D_CLONE_ERROR 0x013008 +/* Directory inode has a missing block (hole) */ +#define PR_1_COLLAPSE_DBLOCK 0x010072 + /* * Pass 2 errors */ |