Explorar o código

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>
Steven Whitehouse %!s(int64=15) %!d(string=hai) anos
pai
achega
cdcfde62da
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      fs/gfs2/super.c

+ 3 - 0
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;
 }