From 3432a916edad569235586b45d1a51706d4d700a7 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 2 Oct 2002 17:47:08 -0400 Subject: [PATCH] e2image.c (write_raw_image_file): Handle a bad block in the inode table correctly. --- misc/ChangeLog | 5 +++++ misc/e2image.c | 2 ++ 2 files changed, 7 insertions(+) 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")); -- 1.8.3.1