diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2010-08-03 13:04:00 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-08-06 13:41:39 -0400 |
commit | d5eff1a3412f6d75bf28f423c5015ece8055407a (patch) | |
tree | a1e65a188bda702f93537fc3c9b92b30224ae190 /fs/nfs | |
parent | 761fe93cdfa29071879d882c92e966ae692c0048 (diff) | |
download | kernel_samsung_smdk4412-d5eff1a3412f6d75bf28f423c5015ece8055407a.zip kernel_samsung_smdk4412-d5eff1a3412f6d75bf28f423c5015ece8055407a.tar.gz kernel_samsung_smdk4412-d5eff1a3412f6d75bf28f423c5015ece8055407a.tar.bz2 |
NFS: Fix /proc/mount for legacy binary interface
Add a flag so we know if we mounted the NFS server using the legacy
binary interface. If we used the legacy interface, then we should not
show the mountd options.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/super.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index f9df16d..f1ae39f 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -546,6 +546,9 @@ static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, { struct sockaddr *sap = (struct sockaddr *)&nfss->mountd_address; + if (nfss->flags & NFS_MOUNT_LEGACY_INTERFACE) + return; + switch (sap->sa_family) { case AF_INET: { struct sockaddr_in *sin = (struct sockaddr_in *)sap; @@ -1780,6 +1783,7 @@ static int nfs_validate_mount_data(void *options, * can deal with. */ args->flags = data->flags & NFS_MOUNT_FLAGMASK; + args->flags |= NFS_MOUNT_LEGACY_INTERFACE; args->rsize = data->rsize; args->wsize = data->wsize; args->timeo = data->timeo; |