Commit 490566ed authored by Chen Hanxiao's avatar Chen Hanxiao Committed by Trond Myklebust

NFS: Display the "fsc=" mount option if it is set

With this patch, mount command will show fsc=xxx if set:

If -o fsc=6666
clientaddr=192.168.122.208,fsc=6666,local_lock=none

If only -o fsc
clientaddr=192.168.122.208,fsc,local_lock=none
Signed-off-by: default avatarChen Hanxiao <chenhx.fnst@fujitsu.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 6e21eda4
......@@ -516,8 +516,16 @@ static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss,
else
nfs_show_nfsv4_options(m, nfss, showdefaults);
if (nfss->options & NFS_OPTION_FSCACHE)
if (nfss->options & NFS_OPTION_FSCACHE) {
#ifdef CONFIG_NFS_FSCACHE
if (nfss->fscache_uniq)
seq_printf(m, ",fsc=%s", nfss->fscache_uniq);
else
seq_puts(m, ",fsc");
#else
seq_puts(m, ",fsc");
#endif
}
if (nfss->options & NFS_OPTION_MIGRATION)
seq_puts(m, ",migration");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment