the dirs_to_hash list, since we don't want to reindex
directories if the filesystem is opened read-only.
+2002-07-23 Theodore Ts'o <tytso@mit.edu>
+
+ * pass1.c (e2fsck_pass1): If e2fsck is run with -n, don't create
+ the dirs_to_hash list, since we don't want to reindex
+ directories if the filesystem is opened read-only.
+
2002-07-21 Theodore Ts'o <tytso@mit.edu>
* e2fsck.8.in: Document new exit code FSCK_CANCELED
if (!(ctx->options & E2F_OPT_PREEN))
fix_problem(ctx, PR_1_PASS_HEADER, &pctx);
- if (fs->super->s_feature_compat & EXT2_FEATURE_COMPAT_DIR_INDEX) {
+ if ((fs->super->s_feature_compat & EXT2_FEATURE_COMPAT_DIR_INDEX) &&
+ !(ctx->options & E2F_OPT_NO)) {
if (ext2fs_u32_list_create(&ctx->dirs_to_hash, 50))
ctx->dirs_to_hash = 0;
}