diff options
author | Jeff Layton <jlayton@redhat.com> | 2009-06-10 15:57:55 +0200 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2009-06-10 17:39:14 +0200 |
commit | 58f7f68f228c3aba2ba4468d92e2cec35724ba2e (patch) | |
tree | 3afd0bfcfa97ebd76154f10cfc6dae4d839589d4 /fs | |
parent | [CIFS] Add mention of new mount parm (forceuid) to cifs readme (diff) | |
download | linux-58f7f68f228c3aba2ba4468d92e2cec35724ba2e.tar.xz linux-58f7f68f228c3aba2ba4468d92e2cec35724ba2e.zip |
cifs: add addr= mount option alias for ip=
When you look in /proc/mounts, the address of the server gets displayed
as "addr=". That's really a better option to use anyway since it's more
generic. What if we eventually want to support non-IP transports? It
also makes CIFS option consistent with the NFS option of the same name.
Begin the migration to that option name by adding an alias for ip=
called addr=.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/connect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 10151f8d8495..6298dc32adeb 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -958,7 +958,8 @@ cifs_parse_mount_options(char *options, const char *devname, } strcpy(vol->password, value); } - } else if (strnicmp(data, "ip", 2) == 0) { + } else if (!strnicmp(data, "ip", 2) || + !strnicmp(data, "addr", 4)) { if (!value || !*value) { vol->UNCip = NULL; } else if (strnlen(value, INET6_ADDRSTRLEN) < |