Whamcloud - gitweb
Allow a single user for internal journals (the current filesystem)
authorAndreas Dilger <adilger@clusterfs.com>
Fri, 9 Nov 2001 00:50:50 +0000 (17:50 -0700)
committerAndreas Dilger <adilger@clusterfs.com>
Fri, 9 Nov 2001 00:50:50 +0000 (17:50 -0700)
since this is how the filesystem is created.

e2fsck/journal.c

index 62d4812..78f2f1a 100644 (file)
@@ -402,7 +402,7 @@ static errcode_t e2fsck_journal_load(journal_t *journal)
                
        case JFS_SUPERBLOCK_V2:
                journal->j_format_version = 2;
-               if (jsb->s_nr_users &&
+               if (jsb->s_nr_users > 1 &&
                    (ctx->fs->io == ctx->journal_io))
                        clear_v2_journal_fields(journal);
                if (ntohl(jsb->s_nr_users) > 1) {