diff options
author | David Teigland | 2012-01-09 20:40:06 +0100 |
---|---|---|
committer | Steven Whitehouse | 2012-01-11 10:23:40 +0100 |
commit | e8ca5cc571a60339491f8c273a01093096ff8704 (patch) | |
tree | e5133a5600113e8c2849675ab96dce0e6521aa09 /fs/gfs2/ops_fstype.c | |
parent | GFS2: Fix a use-after-free that coverity spotted (diff) | |
download | kernel-qcow2-linux-e8ca5cc571a60339491f8c273a01093096ff8704.tar.gz kernel-qcow2-linux-e8ca5cc571a60339491f8c273a01093096ff8704.tar.xz kernel-qcow2-linux-e8ca5cc571a60339491f8c273a01093096ff8704.zip |
GFS2: let spectator mount do read only recovery
Previously, a spectator mount would not even attempt to do
journal recovery for a failed node. This meant that if all
mounted nodes were spectators, everyone would be stuck after
a node failed, all waiting for recovery to be performed.
This is unnecessary since the failed node had a clean journal.
Instead, allow a spectator mount to do a partial "read only"
recovery, which means it will check if the failed journal is
clean, and if so, report a successful recovery. If the failed
journal is not clean, it reports that journal recovery failed.
This makes it work the same as a read only mount on a read only
block device.
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_fstype.c')
-rw-r--r-- | fs/gfs2/ops_fstype.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 if (sdp->sd_args.ar_spectator) { sb->s_flags |= MS_RDONLY; - set_bit(SDF_NORECOVERY, &sdp->sd_flags); + set_bit(SDF_RORECOVERY, &sdp->sd_flags); } if (sdp->sd_args.ar_posix_acl) sb->s_flags |= MS_POSIXACL; |