aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorScott Mayhew <smayhew@redhat.com>2020-02-21 15:21:38 -0500
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2020-02-21 15:51:04 -0500
commit1cef21842ff3b6043c459b6462183e70295b5b19 (patch)
tree23edce6a06e98afef9c527d6f87277d1126571bd /include
parentNFSv4: Ensure the delegation cred is pinned when we call delegreturn (diff)
downloadlinux-dev-1cef21842ff3b6043c459b6462183e70295b5b19.tar.xz
linux-dev-1cef21842ff3b6043c459b6462183e70295b5b19.zip
NFS: Ensure the fs_context has the correct fs_type before mounting
This is necessary because unless userspace explicitly requests fstype "nfs4" (either via "mount -t nfs4" or by calling the "mount.nfs4" helper directly), the fstype will default to "nfs". This was fine on older kernels because the super_block->s_type was set via mount_info->nfs_mod->nfs_fs, which was set when parsing the mount options and subsequently passed in the "type" argument of sget(). After commit f2aedb713c28 ("NFS: Add fs_context support."), sget_fc(), which has no "type" argument, is called instead. In sget_fc(), the super_block->s_type is set via fs_context->fs_type, which was set when the filesystem context was initially created. Reported-by: Patrick Steinhardt <ps@pks.im> Fixes: f2aedb713c28 ("NFS: Add fs_context support.") Signed-off-by: Scott Mayhew <smayhew@redhat.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions