]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Use super.c for NFSROOT mount option parsing
authorChuck Lever <chuck.lever@oracle.com>
Fri, 17 Sep 2010 14:54:37 +0000 (10:54 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 17 Sep 2010 14:54:37 +0000 (10:54 -0400)
commitbe5bb9298464712901dbcdecb6a1b14cd06e51e9
tree889f492ebe064c0f7b2b9bb759c13767b4d234d1
parentf21c5601166986f0c9e000f0d02702c6605b0b2c
NFS: Use super.c for NFSROOT mount option parsing

Replace duplicate code in NFSROOT for mounting an NFS server on '/'
with logic that uses the existing mainline text-based logic in the NFS
client.

Add documenting comments where appropriate.

Note that this means NFSROOT mounts now use the same default settings
as v2/v3 mounts done via mount(2) from user space.

  vers=3,tcp,rsize=<negotiated default>,wsize=<negotiated default>

As before, however, no version/protocol negotiation with the server is
done.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfsroot.c
include/linux/nfs_fs.h
init/do_mounts.c