diff options
author | Scott Lovenberg <scott.lovenberg@gmail.com> | 2012-10-23 15:37:03 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2012-10-23 15:37:03 -0400 |
commit | 679fbebb5a656b4eb1a8988fb0d8697a5f919794 (patch) | |
tree | 42d4f814bbba8cff0aeba71b9d20a29f80561d8d /mount.cifs.c | |
parent | 819018e34696b0fb9bf1b386304b5dce39ae0e6d (diff) | |
download | cifs-utils-679fbebb5a656b4eb1a8988fb0d8697a5f919794.tar.gz cifs-utils-679fbebb5a656b4eb1a8988fb0d8697a5f919794.tar.bz2 cifs-utils-679fbebb5a656b4eb1a8988fb0d8697a5f919794.zip |
mount.cifs: add warning that NFS syntax is deprecated and will be
removed in cifs-utils-6.0.
[jlayton: Added newline to end of warning]
Signed-off-by: Scott Lovenberg <scott.lovenberg@gmail.com>
Diffstat (limited to 'mount.cifs.c')
-rw-r--r-- | mount.cifs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mount.cifs.c b/mount.cifs.c index 756fce2..9cf58a5 100644 --- a/mount.cifs.c +++ b/mount.cifs.c @@ -1335,6 +1335,7 @@ static int parse_unc(const char *unc_name, struct parsed_mount_info *parsed_info } /* Set up "host" and "share" pointers based on UNC format. */ + /* TODO: Remove support for NFS syntax as of cifs-utils-6.0. */ if (strncmp(unc_name, "//", 2) && strncmp(unc_name, "\\\\", 2)) { /* * check for nfs syntax (server:/share/prepath) @@ -1351,6 +1352,9 @@ static int parse_unc(const char *unc_name, struct parsed_mount_info *parsed_info share++; if (*share == '/') ++share; + fprintf(stderr, "WARNING: using NFS syntax for mounting CIFS " + "shares is deprecated and will be removed in cifs-utils" + "-6.0. Please migrate to UNC syntax.\n"); } else { host = unc_name + 2; hostlen = strcspn(host, "/\\"); |