summaryrefslogtreecommitdiff
path: root/e2fsck/problem.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2012-03-11 16:19:10 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-03-11 23:31:38 -0400
commit26c09eb8145a16dcba6c40810d46a78712d253f2 (patch)
treeebc779c27fcedcd2602156a141add4dcba80e717 /e2fsck/problem.h
parentc15386cdeed2464736f46bf1b19ec80ba8812dbf (diff)
downloade2fsprogs-26c09eb8145a16dcba6c40810d46a78712d253f2.tar.gz
e2fsck: check for zero length extent
If an extent has e_len set to zero, the kernel will oops with a BUG_ON. Unfortunately, e2fsck wasn't catching this case. The kernel needs to be fixed to notice this case and call ext4_error() instead of failing an assertion check, but e2fsck should catch this case and repair it (by deleting the errant extent). Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'e2fsck/problem.h')
-rw-r--r--e2fsck/problem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/e2fsck/problem.h b/e2fsck/problem.h
index 3fabc906..f2bd4146 100644
--- a/e2fsck/problem.h
+++ b/e2fsck/problem.h
@@ -550,6 +550,9 @@ struct problem_context {
/* Invalid bad inode */
#define PR_1_INVALID_BAD_INODE 0x010065
+/* Extent has zero length */
+#define PR_1_EXTENT_LENGTH_ZERO 0x010066
+
/*
* Pass 1b errors
*/