From: Theodore Ts'o Date: Wed, 2 Oct 2002 21:47:08 +0000 (-0400) Subject: e2image.c (write_raw_image_file): Handle a bad block in the X-Git-Tag: E2FSPROGS-1_30~32 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=3432a916edad569235586b45d1a51706d4d700a7;p=tools%2Fe2fsprogs.git e2image.c (write_raw_image_file): Handle a bad block in the inode table correctly. --- diff --git a/misc/ChangeLog b/misc/ChangeLog index 6f2842d..9e623d7 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,8 @@ +2002-10-02 Theodore Ts'o + + * e2image.c (write_raw_image_file): Handle a bad block in the + inode table correctly. + 2002-09-29 Theodore Ts'o * get_device_by_label.c: Applied sourceforge patch #613447, which diff --git a/misc/e2image.c b/misc/e2image.c index db8bd64..1996311 100644 --- a/misc/e2image.c +++ b/misc/e2image.c @@ -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"));