NFS: Don't hard-code the fs_type when submounting
authorScott Mayhew <smayhew@redhat.com>
Thu, 20 Feb 2020 13:06:20 +0000 (08:06 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 25 Feb 2020 18:31:19 +0000 (13:31 -0500)
commit1821b26a1fed8fca57a96ef87bac7a6a48e78815
treee7d82b2e96dd61089db0ee2f8d18af09735cf247
parent1cef21842ff3b6043c459b6462183e70295b5b19
NFS: Don't hard-code the fs_type when submounting

Hard-coding the fstype causes "nfs4" mounts to appear as "nfs",
which breaks scripts that do "umount -at nfs4".

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>
fs/nfs/namespace.c