]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
Regression: fix mounting NFS when NFSv3 support is not compiled
authorPaulius Zaleckas <paulius.zaleckas@gmail.com>
Sun, 31 Oct 2010 16:21:05 +0000 (18:21 +0200)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 16 Nov 2010 01:44:27 +0000 (20:44 -0500)
commit1e657bd51f313d87fbbb22d1edf625dba87ef353
treee693b41296e5da158971ae7df9d73dc6e69cd4be
parent8e35f8e7c61c88f9a979a4e6f7f4ffd4c158a88a
Regression: fix mounting NFS when NFSv3 support is not compiled

Trying to mount NFS (root partition in my case) fails if CONFIG_NFS_V3
is not selected. nfs_validate_mount_data() returns EPROTONOSUPPORT,
because of this check:

#ifndef CONFIG_NFS_V3
if (args->version == 3)
goto out_v3_not_compiled;
#endif /* !CONFIG_NFS_V3 */

and args->version was always initialized to 3.

It was working in 2.6.36

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/super.c