]> git.baikalelectronics.ru Git - kernel.git/commit
nfsroot: make nfsroot to accept the 1024 bytes long directory name
authorLi RongQing <roy.qing.li@gmail.com>
Thu, 24 Sep 2015 02:19:09 +0000 (10:19 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 21 Oct 2015 20:49:19 +0000 (15:49 -0500)
commit5569cc165596fe3edd6794ca71b762eeab3e90bc
tree48a5e32f2761e5d46d0ff2f8082a63f165c951c4
parent9ca1c985f7baa48dd8a95ecb94d25b3e5d919c0e
nfsroot: make nfsroot to accept the 1024 bytes long directory name

although NFS_MAXPATHLEN is defined to 1024, nfs client hopes to accept
a 1024 byte path, but nfs_root_parms is limited to 256, and the nfs path
will truncated when a user inputs nfs path from kernel cmdline

enlarge nfs_root_parms to 1024, to make it accept the 1024 bytes long
directory name, since nfs_root_parms is defined as _initdata, it will
be released after system bootup

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfsroot.c