+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
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;
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");
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;
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");