Whamcloud - gitweb
ChangeLog, lsdel.c:
authorTheodore Ts'o <tytso@mit.edu>
Fri, 9 Jun 2000 04:24:36 +0000 (04:24 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 9 Jun 2000 04:24:36 +0000 (04:24 +0000)
  Handle bad blocks in inode table.

debugfs/ChangeLog
debugfs/lsdel.c

index eda81e9..3bbdd6f 100644 (file)
@@ -1,3 +1,7 @@
+2000-06-09    <tytso@snap.thunk.org>
+
+       * lsdel.c (do_lsdel): Handle bad bad blocks in inode table.
+
 2000-05-27  Theodore Ts'o  <tytso@valinux.com>
 
        * debugfs.c (do_testb, do_testi): Call check_fs_bitmaps to avoid
index f2e41dc..0c0d21c 100644 (file)
@@ -158,7 +158,9 @@ void do_lsdel(int argc, char **argv)
                }
                
        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("ls_deleted_inodes", retval,
                                "while doing inode scan");