diff options
author | Suresh Jayaraman <sjayaraman@suse.de> | 2010-09-23 14:26:48 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-09-23 14:26:48 -0400 |
commit | 7c563cc9f3f4aca70c27bd08a135499227f67014 (patch) | |
tree | fe83f56f100db15f84bbff2c41539595da9f5e1d /fs/nfs | |
parent | ef84303ebc77a9041265faaccd56b7fcef151077 (diff) | |
download | op-kernel-dev-7c563cc9f3f4aca70c27bd08a135499227f67014.zip op-kernel-dev-7c563cc9f3f4aca70c27bd08a135499227f67014.tar.gz |
nfs: show "local_lock" mount option in /proc/mounts
Display the status of 'local_lock' mount option in /proc/mounts.
Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/super.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 2e866d8..50ed035 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -632,6 +632,7 @@ static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, const struct proc_nfs_info *nfs_infop; struct nfs_client *clp = nfss->nfs_client; u32 version = clp->rpc_ops->version; + int local_flock, local_fcntl; seq_printf(m, ",vers=%u", version); seq_printf(m, ",rsize=%u", nfss->rsize); @@ -680,6 +681,18 @@ static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, else seq_printf(m, ",lookupcache=pos"); } + + local_flock = nfss->flags & NFS_MOUNT_LOCAL_FLOCK; + local_fcntl = nfss->flags & NFS_MOUNT_LOCAL_FCNTL; + + if (!local_flock && !local_fcntl) + seq_printf(m, ",local_lock=none"); + else if (local_flock && local_fcntl) + seq_printf(m, ",local_lock=all"); + else if (local_flock) + seq_printf(m, ",local_lock=flock"); + else + seq_printf(m, ",local_lock=posix"); } /* |