Whamcloud - gitweb
ChangeLog, icheck.c, ncheck.c:
authorTheodore Ts'o <tytso@mit.edu>
Mon, 8 Nov 1999 19:27:13 +0000 (19:27 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 8 Nov 1999 19:27:13 +0000 (19:27 +0000)
  icheck.c (do_icheck):
  ncheck.c (do_ncheck): If ext2fs_open_inode_scan() returns
   EXT2_ET_BAD_BLOCK_IN_INODE_TABLE loop to skip over the bad blocks in
   the inode table.

debugfs/ChangeLog
debugfs/icheck.c
debugfs/ncheck.c

index 9ce757c..8877780 100644 (file)
@@ -1,3 +1,10 @@
+1999-11-08    <tytso@valinux.com>
+
+       * icheck.c (do_icheck): 
+       * ncheck.c (do_ncheck): If ext2fs_open_inode_scan() returns 
+               EXT2_ET_BAD_BLOCK_IN_INODE_TABLE loop to skip over the bad
+               blocks in the inode table.
+
 1999-10-26    <tytso@valinux.com>
 
        * Release of E2fsprogs 1.17
index 968d457..136c52e 100644 (file)
@@ -99,7 +99,9 @@ void do_icheck(int argc, char **argv)
                goto error_out;
        }
 
-       retval = ext2fs_get_next_inode(scan, &ino, &inode);
+       do {
+               retval = ext2fs_get_next_inode(scan, &ino, &inode);
+       } while (retval == EXT2_ET_BAD_BLOCK_IN_INODE_TABLE);
        if (retval) {
                com_err("icheck", retval, "while starting inode scan");
                goto error_out;
@@ -131,7 +133,9 @@ void do_icheck(int argc, char **argv)
                        break;
 
        next:
-               retval = ext2fs_get_next_inode(scan, &ino, &inode);
+               do {
+                       retval = ext2fs_get_next_inode(scan, &ino, &inode);
+               } while (retval == EXT2_ET_BAD_BLOCK_IN_INODE_TABLE);
                if (retval) {
                        com_err("icheck", retval,
                                "while doing inode scan");
index 7dec343..83fe9b5 100644 (file)
@@ -98,7 +98,9 @@ void do_ncheck(int argc, char **argv)
                goto error_out;
        }
 
-       retval = ext2fs_get_next_inode(scan, &ino, &inode);
+       do {
+               retval = ext2fs_get_next_inode(scan, &ino, &inode);
+       } while (retval == EXT2_ET_BAD_BLOCK_IN_INODE_TABLE);
        if (retval) {
                com_err("ncheck", retval, "while starting inode scan");
                goto error_out;
@@ -132,7 +134,10 @@ void do_ncheck(int argc, char **argv)
                        break;
 
        next:
-               retval = ext2fs_get_next_inode(scan, &ino, &inode);
+               do {
+                       retval = ext2fs_get_next_inode(scan, &ino, &inode);
+               } while (retval == EXT2_ET_BAD_BLOCK_IN_INODE_TABLE);
+
                if (retval) {
                        com_err("ncheck", retval,
                                "while doing inode scan");