ChangeLog, pass3.c, problem.c:
pass3.c (get_lost_and_found): If the filesystem is not opened
read-only, then force /lost+found to be created if it is not present.
problem.c: Allow PR_3_NO_LF_DIR to be handled during a preen operation.
ChangeLog, Makefile.in:
Makefile.in: Updated dependencies.
ChangeLog, fsck.c:
fsck.c (load_fs_info): Parse /etc/fstab ourselves, instead of relying
on getmntent(). This has the advantage of allowing us to properly
handle missing pass numbers correctly.
ChangeLog, configure.in:
configure.in: Add paths.h to header files for which we search.
diff --git a/e2fsck/pass3.c b/e2fsck/pass3.c
index 0700698..560f291 100644
--- a/e2fsck/pass3.c
+++ b/e2fsck/pass3.c
@@ -124,6 +124,12 @@
check_directory(ctx, dir, &pctx);
}
+ /*
+ * Force the creation of /lost+found if not present
+ */
+ if ((ctx->flags & E2F_OPT_READONLY) == 0)
+ get_lost_and_found(ctx);
+
abort_exit:
e2fsck_free_dir_info(ctx);
if (inode_loop_detect)