Whamcloud - gitweb
e2fsck: don't check/clone duplicate xattr blocks in fs without xattr feature
authorEric Sandeen <sandeen@redhat.com>
Tue, 31 May 2011 23:59:56 +0000 (19:59 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 1 Jun 2011 00:09:08 +0000 (20:09 -0400)
commit7501ce3ee331b7cdb965ab95036090f2de91b5e0
treee5d7aaf1a3eac5f45dda6ad2d0a677957e89052b
parent3977a4ff5b6d8f1a2a15d267308c52d42f31ba01
e2fsck: don't check/clone duplicate xattr blocks in fs without xattr feature

I had an extremely corrupted customer filesystem which, after thousands
of lines of e2fsck output, found one more problem on an immediately
subsequent e2fsck.  In short, a file had had its i_file_acl block
cloned due to being a duplicate.  That ultimately got cleared
because the fs did not have the xattr feature, and the inode
was subsequently removed due to invalid mode.

The 2nd e2fsck pass found the cloned xattr block as in use, but
not owned by any file, and had to fix up the block bitmaps.

Simply skipping the processing of duplicate xattr blocks on a
non-xattr filesystem seems reasonable, since they will be cleared
later in any case.

(also fix existing brace misalignment)

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1b.c