[Ocfs2-tools-commits] zab commits r447 - trunk/fsck.ocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Dec 2 12:54:37 CST 2004
Author: zab
Date: 2004-12-02 12:54:35 -0600 (Thu, 02 Dec 2004)
New Revision: 447
Modified:
trunk/fsck.ocfs2/pass3.c
Log:
o reflect the new lost+found in the dir parent and icount tracking
Modified: trunk/fsck.ocfs2/pass3.c
===================================================================
--- trunk/fsck.ocfs2/pass3.c 2004-12-02 01:42:12 UTC (rev 446)
+++ trunk/fsck.ocfs2/pass3.c 2004-12-02 18:54:35 UTC (rev 447)
@@ -115,8 +115,17 @@
blkno = 0;
- /* set both icount refs to 2. add dir info for it. put it
- * in used, dir bitmaps. */
+ /* XXX maybe this should be a helper to clean up the dir tracking
+ * for any new dir. "2" for both the l+f dirent pointing to the
+ * inode and the "." dirent in its dirblock */
+ o2fsck_icount_set(ost->ost_icount_in_inodes, blkno, 2);
+ o2fsck_icount_set(ost->ost_icount_refs, blkno, 2);
+ o2fsck_add_dir_parent(&ost->ost_dir_parents, blkno,
+ ost->ost_fs->fs_root_blkno,
+ ost->ost_fs->fs_root_blkno);
+ /* we've already iterated through the dirblocks in pass2 so there
+ * is no need to register l+f's new dir block */
+
out:
if (blkno) {
ret = ocfs2_delete_inode(ost->ost_fs, blkno);
More information about the Ocfs2-tools-commits
mailing list