Skip to content

Commit

Permalink
cifs: remove the vers= and version= synonyms for ver=
Browse files Browse the repository at this point in the history
We want these to mean something different entirely, and the mount.cifs
helper only ever passed in ver= automatically. Also, don't allow
ver=cifs anymore since that was never passed in by the mount helper.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
  • Loading branch information
Jeff Layton authored and Steve French committed May 17, 2012
1 parent 296838b commit 5249af3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,6 @@ static const match_table_t cifs_mount_option_tokens = {
{ Opt_netbiosname, "netbiosname=%s" },
{ Opt_servern, "servern=%s" },
{ Opt_ver, "ver=%s" },
{ Opt_ver, "vers=%s" },
{ Opt_ver, "version=%s" },
{ Opt_sec, "sec=%s" },
{ Opt_cache, "cache=%s" },

Expand Down Expand Up @@ -1874,8 +1872,7 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
if (string == NULL)
goto out_nomem;

if (strnicmp(string, "cifs", 4) == 0 ||
strnicmp(string, "1", 1) == 0) {
if (strnicmp(string, "1", 1) == 0) {
/* This is the default */
break;
}
Expand Down

0 comments on commit 5249af3

Please sign in to comment.