diff options
| -rw-r--r-- | fs/nfs/super.c | 4 | ||||
| -rw-r--r-- | include/linux/nfs_mount.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index f9df16de4a56..f1ae39f6cb02 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, | |||
| 546 | { | 546 | { |
| 547 | struct sockaddr *sap = (struct sockaddr *)&nfss->mountd_address; | 547 | struct sockaddr *sap = (struct sockaddr *)&nfss->mountd_address; |
| 548 | 548 | ||
| 549 | if (nfss->flags & NFS_MOUNT_LEGACY_INTERFACE) | ||
| 550 | return; | ||
| 551 | |||
| 549 | switch (sap->sa_family) { | 552 | switch (sap->sa_family) { |
| 550 | case AF_INET: { | 553 | case AF_INET: { |
| 551 | struct sockaddr_in *sin = (struct sockaddr_in *)sap; | 554 | struct sockaddr_in *sin = (struct sockaddr_in *)sap; |
| @@ -1780,6 +1783,7 @@ static int nfs_validate_mount_data(void *options, | |||
| 1780 | * can deal with. | 1783 | * can deal with. |
| 1781 | */ | 1784 | */ |
| 1782 | args->flags = data->flags & NFS_MOUNT_FLAGMASK; | 1785 | args->flags = data->flags & NFS_MOUNT_FLAGMASK; |
| 1786 | args->flags |= NFS_MOUNT_LEGACY_INTERFACE; | ||
| 1783 | args->rsize = data->rsize; | 1787 | args->rsize = data->rsize; |
| 1784 | args->wsize = data->wsize; | 1788 | args->wsize = data->wsize; |
| 1785 | args->timeo = data->timeo; | 1789 | args->timeo = data->timeo; |
diff --git a/include/linux/nfs_mount.h b/include/linux/nfs_mount.h index 4499016e6d0d..5d59ae861aa6 100644 --- a/include/linux/nfs_mount.h +++ b/include/linux/nfs_mount.h | |||
| @@ -69,5 +69,6 @@ struct nfs_mount_data { | |||
| 69 | #define NFS_MOUNT_LOOKUP_CACHE_NONEG 0x10000 | 69 | #define NFS_MOUNT_LOOKUP_CACHE_NONEG 0x10000 |
| 70 | #define NFS_MOUNT_LOOKUP_CACHE_NONE 0x20000 | 70 | #define NFS_MOUNT_LOOKUP_CACHE_NONE 0x20000 |
| 71 | #define NFS_MOUNT_NORESVPORT 0x40000 | 71 | #define NFS_MOUNT_NORESVPORT 0x40000 |
| 72 | #define NFS_MOUNT_LEGACY_INTERFACE 0x80000 | ||
| 72 | 73 | ||
| 73 | #endif | 74 | #endif |
