Discussion:
[PATCH 1/1] Add dditional error text for missing mount.cifs
Mike Pagano
2014-04-17 17:42:23 UTC
Permalink
If a cifs mount is attempted without mount.cifs present on the
system the following appears via dmesg:

[ 25.949378] CIFS VFS: No username specified

The purpose of this patch is to better inform the user of the
possible cause of the error and show a potential solution.

Signed-off-by: Mike Pagano <mpagano-aBrp7R+bbdUdnm+***@public.gmane.org>
---
fs/cifs/connect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 8813ff7..aa3249d 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -3371,7 +3371,7 @@ cifs_setup_volume_info(struct smb_vol *volume_info, char *mount_data,
/* BB fixme parse for domain name here */
cifs_dbg(FYI, "Username: %s\n", volume_info->username);
} else {
- cifs_dbg(VFS, "No username specified\n");
+ cifs_dbg(VFS, "No username specified. Check for missing external program mount.cifs\n");
/* In userspace mount helper we can get user name from alternate
locations such as env variables and files on disk */
return -EINVAL;
--
1.8.3.2
Steve French
2014-04-17 17:56:51 UTC
Permalink
Might be better to check for /sbin/mount.cifs unless there are distros
put mount helpers in a different location
Post by Mike Pagano
If a cifs mount is attempted without mount.cifs present on the
[ 25.949378] CIFS VFS: No username specified
The purpose of this patch is to better inform the user of the
possible cause of the error and show a potential solution.
---
fs/cifs/connect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 8813ff7..aa3249d 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -3371,7 +3371,7 @@ cifs_setup_volume_info(struct smb_vol *volume_info, char *mount_data,
/* BB fixme parse for domain name here */
cifs_dbg(FYI, "Username: %s\n", volume_info->username);
} else {
- cifs_dbg(VFS, "No username specified\n");
+ cifs_dbg(VFS, "No username specified. Check for missing external program mount.cifs\n");
/* In userspace mount helper we can get user name from alternate
locations such as env variables and files on disk */
return -EINVAL;
--
1.8.3.2
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Thanks,

Steve
Loading...