Message ID | 20090515185158.GQ3209@webber.adilger.int |
---|---|
State | Accepted, archived |
Headers | show |
On Fri, May 15, 2009 at 12:51:58PM -0600, Andreas Dilger wrote: > The following patch moves the e2fsck error handler initialization earlier > in the e2fsck startup code before the journal is processed, so that the > user will be prompted for an action. This is the first IO that is not > part of ext2fs_open() where fs->io is first initialized. Applied, thanks. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Index: e2fsprogs+chaos4/e2fsck/unix.c =================================================================== --- e2fsprogs+chaos4.orig/e2fsck/unix.c +++ e2fsprogs+chaos4/e2fsck/unix.c @@ -1395,6 +1395,8 @@ restart: if (isspace(*cp) || *cp == ':') *cp = '_'; + ehandler_init(fs->io); + /* * Make sure the ext3 superblock fields are consistent. */ @@ -1506,8 +1508,6 @@ print_unsupp_features: if (ctx->blocks_per_page == 0) ctx->blocks_per_page = 1; - ehandler_init(fs->io); - if (ctx->superblock) set_latch_flags(PR_LATCH_RELOC, PRL_LATCHED, 0); ext2fs_mark_valid(fs);