[Ocfs2-tools-commits] zab commits r301 - trunk/fsck.ocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Sep 30 15:53:30 CDT 2004
Author: zab
Date: 2004-09-30 15:53:28 -0500 (Thu, 30 Sep 2004)
New Revision: 301
Modified:
trunk/fsck.ocfs2/pass2.c
Log:
o only check dir blocks that are under a used dir inode
Modified: trunk/fsck.ocfs2/pass2.c
===================================================================
--- trunk/fsck.ocfs2/pass2.c 2004-09-30 19:25:03 UTC (rev 300)
+++ trunk/fsck.ocfs2/pass2.c 2004-09-30 20:53:28 UTC (rev 301)
@@ -268,8 +268,17 @@
struct dirblock_data *dd = priv_data;
struct ocfs2_dir_entry *dirent, *prev = NULL;
unsigned int offset = 0, this_flags, ret_flags = 0;
+ int was_set;
errcode_t retval;
+ retval = ocfs2_bitmap_test(dd->ost->ost_used_inodes, dbe->e_ino,
+ &was_set);
+ if (retval)
+ fatal_error(retval, "while checking for inode %"PRIu64" in "
+ "the used bitmap", dbe->e_ino);
+ if (!was_set)
+ return 0;
+
/* XXX there is no byte swapping story here, which is wrong. we might
* be able to salvage more than read_dir_block() if we did our own
* swabing, so maybe that's what's needed. */
More information about the Ocfs2-tools-commits
mailing list