]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
pass2.c (e2fsck_pass2): Use dx_dir->numblocks instead of
authorTheodore Ts'o <tytso@mit.edu>
Mon, 15 Jul 2002 20:54:42 +0000 (16:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 15 Jul 2002 20:54:42 +0000 (16:54 -0400)
dx_dir->ino to indicate that a bad inode was cleared.

e2fsck/ChangeLog
e2fsck/pass2.c

index 198d6f5bc973875de5724820fae52112b6b09d61..da1d2c9ebabd057b63618266035a825a8654a723 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-15  Theodore Ts'o  <tytso@mit.edu>
+
+       * pass2.c (e2fsck_pass2): Use dx_dir->numblocks instead of
+               dx_dir->ino to indicate that a bad inode was cleared.
+
 2002-06-26  Theodore Ts'o  <tytso@mit.edu>
 
        * pass1.c (check_blocks): Move htree handling to handle_htree().
index 4ea55942f37d23d891c875e00e1468001020698a..d730765bb6c05327d5f4f96c5a5fe828aa048136 100644 (file)
@@ -148,7 +148,7 @@ void e2fsck_pass2(e2fsck_t ctx)
 
 #ifdef ENABLE_HTREE
        for (i=0; (dx_dir = e2fsck_dx_dir_info_iter(ctx, &i)) != 0;) {
-               if (dx_dir->ino == 0)
+               if (dx_dir->numblocks == 0)
                        continue;
                clear_problem_context(&pctx);
                bad_dir = 0;
@@ -221,13 +221,13 @@ void e2fsck_pass2(e2fsck_t ctx)
                }
                if (bad_dir && fix_problem(ctx, PR_2_HTREE_CLEAR, &pctx)) {
                        clear_htree(ctx, dx_dir->ino);
-                       dx_dir->ino = 0;
+                       dx_dir->numblocks = 0;
                }
 #ifdef ENABLE_HTREE_CLEAR
-               if (dx_dir->ino) {
+               if (dx_dir->numblocks) {
                        fix_problem(ctx, PR_2_HTREE_FCLR, &pctx);
                        clear_htree(ctx, dx_dir->ino);
-                       dx_dir->ino = 0;
+                       dx_dir->numblocks = 0;
                }
 #endif
        }
@@ -503,7 +503,7 @@ static void parse_int_node(ext2_filsys fs,
                        if (fix_problem(cd->ctx, PR_2_HTREE_BADBLK,
                                        &cd->pctx)) {
                                clear_htree(cd->ctx, cd->pctx.ino);
-                               dx_dir->ino = 0;
+                               dx_dir->numblocks = 0;
                                return;
                        }
                }
@@ -610,7 +610,7 @@ static int check_dir_block(ext2_filsys fs,
        }
 #ifdef ENABLE_HTREE
        dx_dir = e2fsck_get_dx_dir_info(ctx, ino);
-       if (dx_dir && dx_dir->ino) {
+       if (dx_dir && dx_dir->numblocks) {
                if (db->blockcnt >= dx_dir->numblocks) {
                        printf("XXX should never happen!!!\n");
                        abort();