aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2009-06-10 09:57:55 -0400
committerSteve French <sfrench@us.ibm.com>2009-06-10 11:39:14 -0400
commit58f7f68f228c3aba2ba4468d92e2cec35724ba2e (patch)
tree3afd0bfcfa97ebd76154f10cfc6dae4d839589d4 /fs/cifs/connect.c
parentf0472d0ec89bef2ea4432828c3daa1b26ef569aa (diff)
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/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c3
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,
958 } 958 }
959 strcpy(vol->password, value); 959 strcpy(vol->password, value);
960 } 960 }
961 } else if (strnicmp(data, "ip", 2) == 0) { 961 } else if (!strnicmp(data, "ip", 2) ||
962 !strnicmp(data, "addr", 4)) {
962 if (!value || !*value) { 963 if (!value || !*value) {
963 vol->UNCip = NULL; 964 vol->UNCip = NULL;
964 } else if (strnlen(value, INET6_ADDRSTRLEN) < 965 } else if (strnlen(value, INET6_ADDRSTRLEN) <