aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2009-10-30 10:48:53 +0000
committerSteven Whitehouse <swhiteho@redhat.com>2009-12-03 11:57:05 +0000
commitcdcfde62dac64c86ff34e483c595d568a252c433 (patch)
treefc8c3d5d4475df414772781513af673fc63e9928
parentf25934c5f88655a8d5c3c40a540daed1f0e6dedc (diff)
GFS2: Display nobarrier option in /proc/mounts
Since the default is barriers on, this only displays the nobarrier option when that is active. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
-rw-r--r--fs/gfs2/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c
index 5e4b31441a9..c282ad41f3d 100644
--- a/fs/gfs2/super.c
+++ b/fs/gfs2/super.c
@@ -1336,6 +1336,9 @@ static int gfs2_show_options(struct seq_file *s, struct vfsmount *mnt)
}
seq_printf(s, ",errors=%s", state);
}
+ if (test_bit(SDF_NOBARRIERS, &sdp->sd_flags))
+ seq_printf(s, ",nobarrier");
+
return 0;
}