diff options
| -rw-r--r-- | fs/nfs/nfs4proc.c | 3 | ||||
| -rw-r--r-- | fs/nfs/super.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 7e27ebf5be5..b8e1ac69b74 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
| @@ -46,6 +46,7 @@ | |||
| 46 | #include <linux/nfs4.h> | 46 | #include <linux/nfs4.h> |
| 47 | #include <linux/nfs_fs.h> | 47 | #include <linux/nfs_fs.h> |
| 48 | #include <linux/nfs_page.h> | 48 | #include <linux/nfs_page.h> |
| 49 | #include <linux/nfs_mount.h> | ||
| 49 | #include <linux/namei.h> | 50 | #include <linux/namei.h> |
| 50 | #include <linux/mount.h> | 51 | #include <linux/mount.h> |
| 51 | #include <linux/module.h> | 52 | #include <linux/module.h> |
| @@ -2234,7 +2235,7 @@ static int nfs4_proc_get_root(struct nfs_server *server, struct nfs_fh *fhandle, | |||
| 2234 | struct nfs_fsinfo *info) | 2235 | struct nfs_fsinfo *info) |
| 2235 | { | 2236 | { |
| 2236 | int status = nfs4_lookup_root(server, fhandle, info); | 2237 | int status = nfs4_lookup_root(server, fhandle, info); |
| 2237 | if (status == -EPERM) | 2238 | if ((status == -EPERM) && !(server->flags & NFS_MOUNT_SECFLAVOUR)) |
| 2238 | status = nfs4_find_root_sec(server, fhandle, info); | 2239 | status = nfs4_find_root_sec(server, fhandle, info); |
| 2239 | if (status == 0) | 2240 | if (status == 0) |
| 2240 | status = nfs4_server_capabilities(server, fhandle); | 2241 | status = nfs4_server_capabilities(server, fhandle); |
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 685a8a7bd17..75bcc3f0e0b 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
| @@ -1004,6 +1004,7 @@ static int nfs_parse_security_flavors(char *value, | |||
| 1004 | return 0; | 1004 | return 0; |
| 1005 | } | 1005 | } |
| 1006 | 1006 | ||
| 1007 | mnt->flags |= NFS_MOUNT_SECFLAVOUR; | ||
| 1007 | mnt->auth_flavor_len = 1; | 1008 | mnt->auth_flavor_len = 1; |
| 1008 | return 1; | 1009 | return 1; |
| 1009 | } | 1010 | } |
