]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
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 6f2842d7a0f2168e30603c223abfbe8973acc0b9..9e623d796bdb7f1a6222b6c0d2ea15e6fb58a91a 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 db8bd648a88b60f18b52c5e42ea6f1dc4d6b5f17..19963113e573c74cee70f2318635a21a8d2dcfea 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"));