]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cifs: fix composing of mount options for DFS referrals
authorJeff Layton <jlayton@redhat.com>
Fri, 24 May 2013 11:40:06 +0000 (07:40 -0400)
committerSteve French <sfrench@us.ibm.com>
Fri, 24 May 2013 18:26:40 +0000 (13:26 -0500)
commit48b31b579db893864694a9b5248ed2ffcaa93621
tree42fe5c39238ed46438286c71332f541a371b95b4
parent42baa12d27313f8d2cb63dc167001bd7ee9f027c
cifs: fix composing of mount options for DFS referrals

With the change to ignore the unc= and prefixpath= mount options, there
is no longer any need to add them to the options string when mounting.
By the same token, we now need to build a device name that includes the
prefixpath when mounting.

To make things neater, the delimiters on the devicename are changed
to '/' since that's preferred when mounting anyway.

v2: fix some comments and don't bother looking at whether there is
    a prepath in the ref->node_name when deciding whether to pass
    a prepath to cifs_build_devname.

v3: rebase on top of potential buffer overrun fix for stable

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_dfs_ref.c
fs/cifs/dns_resolve.c