Bob Peterson 1d12d175ea GFS2: Don't flag consistency error if first mounter is a spectator
This patch checks for the first mounter being a specator. If so, it
makes sure all the journals are clean. If there's a dirty journal,
the mount fails.

Testing results:

# insmod gfs2.ko
# mount -tgfs2 -o spectator /dev/sasdrives/scratch /mnt/gfs2
mount: permission denied
# dmesg | tail -2
[ 3390.655996] GFS2: fsid=MUSKETEER:home: Now mounting FS...
[ 3390.841336] GFS2: fsid=MUSKETEER:home.s: jid=0: Journal is dirty, so the first mounter must not be a spectator.
# mount -tgfs2 /dev/sasdrives/scratch /mnt/gfs2
# umount /mnt/gfs2
# mount -tgfs2 -o spectator /dev/sasdrives/scratch /mnt/gfs2
# ls /mnt/gfs2|wc -l
352
# umount /mnt/gfs2

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2013-09-05 09:03:57 +01:00
..
2011-07-25 14:30:23 -04:00
2010-09-20 11:18:16 +01:00
2013-06-29 12:57:05 +04:00
2013-08-19 09:33:16 +01:00
2011-10-21 12:39:41 +01:00
2013-06-14 11:17:15 +01:00
2013-06-03 14:20:18 -07:00
2013-04-04 09:52:50 +01:00
2013-08-19 17:26:32 +01:00
2013-06-05 09:50:40 +01:00
2011-05-10 13:12:49 +01:00
2013-08-19 17:26:32 +01:00
2013-08-19 17:26:32 +01:00
2013-06-05 09:51:23 +01:00
2013-06-19 21:41:26 +01:00
2013-06-03 16:40:22 +01:00
2013-01-29 10:29:05 +00:00
2012-01-11 09:23:05 +00:00
2013-06-19 21:29:19 +01:00
2013-02-13 12:21:40 +00:00
2009-12-16 12:16:49 -05:00