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>
This commit is contained in:
Jeff Layton 2009-06-10 09:57:55 -04:00 committed by Steve French
parent f0472d0ec8
commit 58f7f68f22
1 changed files with 2 additions and 1 deletions

View File

@ -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) <