[Ocfs2-tools-devel] [PATCH 3/5] fsck.ocfs2: Pass 1b fails to account for inline-data

Sunil Mushran sunil.mushran at oracle.com
Thu Feb 9 16:54:25 PST 2012


In Pass 1b, we should be not attempt to iterate the extents of an inode
if inline-data is enabled. This issue causes fsck to prematurely terminate
in instances when duplicate allocations are detected in pass 1.

Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>
---
 fsck.ocfs2/pass1b.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fsck.ocfs2/pass1b.c b/fsck.ocfs2/pass1b.c
index 3e01cfa..a0bd43e 100644
--- a/fsck.ocfs2/pass1b.c
+++ b/fsck.ocfs2/pass1b.c
@@ -711,6 +711,7 @@ static errcode_t pass1b_process_inode(o2fsck_state *ost,
 	 */
 	if ((di->i_flags & (OCFS2_SUPER_BLOCK_FL | OCFS2_LOCAL_ALLOC_FL |
 			    OCFS2_DEALLOC_FL)) ||
+	    (di->i_dyn_features & OCFS2_INLINE_DATA_FL) ||
 	    (S_ISLNK(di->i_mode) && di->i_clusters == 0))
 		goto xattrs;
 
-- 
1.7.7.6




More information about the Ocfs2-tools-devel mailing list