[<prev] [next>] [day] [month] [year] [list]
Message-id: <1223289079.4007.89.camel@localhost>
Date: Mon, 06 Oct 2008 16:01:19 +0530
From: Kalpak Shah <Kalpak.Shah@....COM>
To: TheodoreTso <tytso@....edu>
Cc: linux-ext4 <linux-ext4@...r.kernel.org>
Subject: [PATCH][9/15] e2fsprogs-ibadness-counter.patch
The present e2fsck code checks the inode, per field basis. It doesn't
take into consideration to total sanity of the inode. This may cause
e2fsck turning a garbage inode into an apparently sane inode ("It is a
vessel of fertilizer, and none may abide its strength.").
The following patch adds a heuristics to detect the degree of badness of
an inode. icount mechanism is used to keep track of the badness of every
inode. The badness is increased as various fields in inode are found to
be corrupt. Badness above a certain threshold value results in deletion
of the inode. The default threshold value is 7, it can be specified to
e2fsck using "-E inode_badness_threshold=<value>"
This can avoid lengthy pass1b shared block processing, where a corrupt
chunk of the inode table has resulted in a bunch of garbage inodes
suddenly having shared blocks with a lot of good inodes (or each other).
Signed-off-by: Andreas Dilger <adilger@....com>
Signed-off-by: Kalpak Shah <kalpak.shah@....com>
Signed-off-by: Girish Shilamkar <girish.shilamkar@....com>
View attachment "e2fsprogs-ibadness-counter.patch" of type "text/x-patch" (29384 bytes)
Powered by blists - more mailing lists