]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
NFS: Fix /proc/mount for legacy binary interface
authorBryan Schumaker <bjschuma@netapp.com>
Tue, 3 Aug 2010 17:04:00 +0000 (13:04 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 6 Aug 2010 17:41:39 +0000 (13:41 -0400)
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>
fs/nfs/super.c
include/linux/nfs_mount.h

index f9df16de4a56b84e18ddb3288f9606bd2cd2cd49..f1ae39f6cb023a187edc8bba9b87707457734e07 100644 (file)
@@ -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;
index 4499016e6d0d85884a0be970877d386976a95f9f..5d59ae861aa6a1c55b0672d1a58d9d3890121871 100644 (file)
@@ -69,5 +69,6 @@ struct nfs_mount_data {
 #define NFS_MOUNT_LOOKUP_CACHE_NONEG   0x10000
 #define NFS_MOUNT_LOOKUP_CACHE_NONE    0x20000
 #define NFS_MOUNT_NORESVPORT           0x40000
+#define NFS_MOUNT_LEGACY_INTERFACE     0x80000
 
 #endif