cifs: parse the device name into UNC and prepath
authorJeff Layton <jlayton@redhat.com>
Mon, 10 Dec 2012 11:10:46 +0000 (06:10 -0500)
committerSteve French <smfrench@gmail.com>
Tue, 11 Dec 2012 17:48:50 +0000 (11:48 -0600)
commitd387a5c50bca619d56f276a69627c2e1c6e5c548
tree86bc043af2734f67fabc1a3a1031a69e8ac31eaa
parent839db3d10a5ba792d6533b8bb3380f52ac877344
cifs: parse the device name into UNC and prepath

This should fix a regression that was introduced when the new mount
option parser went in. Also, when the unc= and prefixpath= options
are provided, check their values against the ones we parsed from
the device string. If they differ, then throw a warning that tells
the user that we're using the values from the unc= option for now,
but that that will change in 3.10.

Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/connect.c