cifs: In the new mount api we get the full devname as source=
authorRonnie Sahlberg <lsahlber@redhat.com>
Thu, 11 Feb 2021 06:06:16 +0000 (16:06 +1000)
committerSteve French <stfrench@microsoft.com>
Thu, 11 Feb 2021 16:58:08 +0000 (10:58 -0600)
commitaf1a3d2ba9543e99d78914d8fb88b61d0531d9a1
tree60cccec8ae313f3d88142f0d49b85df25ee54038
parenta0f85e38a3c23a334d9ea111cfa4fcfa4b3f9b64
cifs: In the new mount api we get the full devname as source=

so we no longer need to handle or parse the UNC= and prefixpath=
options that mount.cifs are generating.

This also fixes a bug in the mount command option where the devname
would be truncated into just //server/share because we were looking
at the truncated UNC value and not the full path.

I.e.  in the mount command output the devive //server/share/path
would show up as just //server/share

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Reviewed-by: Shyam Prasad N <nspmangalore@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsfs.c
fs/cifs/fs_context.c
fs/cifs/fs_context.h