summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2012-01-09 14:40:06 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2012-01-11 09:23:40 +0000
commite8ca5cc571a60339491f8c273a01093096ff8704 (patch)
treee5133a5600113e8c2849675ab96dce0e6521aa09 /fs/gfs2/incore.h
parent49528b4e479195e5db4fe51fcd5ddd97901efc16 (diff)
downloadlinux-e8ca5cc571a60339491f8c273a01093096ff8704.tar.bz2
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/incore.h')
-rw-r--r--fs/gfs2/incore.h1
1 files changed, 1 insertions, 0 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 {
SDF_NORECOVERY = 4,
SDF_DEMOTE = 5,
SDF_NOJOURNALID = 6,
+ SDF_RORECOVERY = 7, /* read only recovery */
};
#define GFS2_FSNAME_LEN 256