Commit 643efb8a authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ChangeLog, icheck.c, ncheck.c:

  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.
parent 7142db08
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
......
......@@ -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");
......
......@@ -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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment