aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/incore.h1
-rw-r--r--fs/gfs2/ops_fstype.c2
-rw-r--r--fs/gfs2/recovery.c4
3 files changed, 5 insertions, 2 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index b9422bc8e2fe..e5701c70f6fb 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -498,6 +498,7 @@ enum {
498 SDF_NORECOVERY = 4, 498 SDF_NORECOVERY = 4,
499 SDF_DEMOTE = 5, 499 SDF_DEMOTE = 5,
500 SDF_NOJOURNALID = 6, 500 SDF_NOJOURNALID = 6,
501 SDF_RORECOVERY = 7, /* read only recovery */
501}; 502};
502 503
503#define GFS2_FSNAME_LEN 256 504#define GFS2_FSNAME_LEN 256
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c
index b01573b7ad96..6aacf3f230a2 100644
--- a/fs/gfs2/ops_fstype.c
+++ b/fs/gfs2/ops_fstype.c
@@ -1078,7 +1078,7 @@ static int fill_super(struct super_block *sb, struct gfs2_args *args, int silent
1078 1078
1079 if (sdp->sd_args.ar_spectator) { 1079 if (sdp->sd_args.ar_spectator) {
1080 sb->s_flags |= MS_RDONLY; 1080 sb->s_flags |= MS_RDONLY;
1081 set_bit(SDF_NORECOVERY, &sdp->sd_flags); 1081 set_bit(SDF_RORECOVERY, &sdp->sd_flags);
1082 } 1082 }
1083 if (sdp->sd_args.ar_posix_acl) 1083 if (sdp->sd_args.ar_posix_acl)
1084 sb->s_flags |= MS_POSIXACL; 1084 sb->s_flags |= MS_POSIXACL;
diff --git a/fs/gfs2/recovery.c b/fs/gfs2/recovery.c
index af49e8f432fe..80701d1566a1 100644
--- a/fs/gfs2/recovery.c
+++ b/fs/gfs2/recovery.c
@@ -516,7 +516,9 @@ void gfs2_recover_func(struct work_struct *work)
516 if (error) 516 if (error)
517 goto fail_gunlock_ji; 517 goto fail_gunlock_ji;
518 518
519 if (test_bit(SDF_JOURNAL_CHECKED, &sdp->sd_flags)) { 519 if (test_bit(SDF_RORECOVERY, &sdp->sd_flags)) {
520 ro = 1;
521 } else if (test_bit(SDF_JOURNAL_CHECKED, &sdp->sd_flags)) {
520 if (!test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags)) 522 if (!test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags))
521 ro = 1; 523 ro = 1;
522 } else { 524 } else {