Whamcloud - gitweb
e2image.c (write_raw_image_file): Handle a bad block in the
authorTheodore Ts'o <tytso@mit.edu>
Wed, 2 Oct 2002 21:47:08 +0000 (17:47 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 2 Oct 2002 21:47:08 +0000 (17:47 -0400)
inode table correctly.

misc/ChangeLog
misc/e2image.c

index 6f2842d..9e623d7 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-02  Theodore Ts'o  <tytso@mit.edu>
+
+       * e2image.c (write_raw_image_file): Handle a bad block in the
+               inode table correctly.
+
 2002-09-29  Theodore Ts'o  <tytso@mit.edu>
 
        * get_device_by_label.c: Applied sourceforge patch #613447, which
index db8bd64..1996311 100644 (file)
@@ -388,6 +388,8 @@ static void write_raw_image_file(ext2_filsys fs, int fd)
        stashed_inode = &inode;
        while (1) {
                retval = ext2fs_get_next_inode(scan, &ino, &inode);
+               if (retval == EXT2_ET_BAD_BLOCK_IN_INODE_TABLE)
+                       continue;
                if (retval) {
                        com_err(program_name, retval,
                                _("while getting next inode"));