diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-17 14:17:51 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-17 14:17:51 -0500 |
commit | 1a47f7a84ef386c1f7f55f669598bd9894ceb73a (patch) | |
tree | 8105fcee8bdbacb06b00cc27e90b631be2290dbb | |
parent | ab2020f2f11fc7fb81e6c71298b0830d85412011 (diff) | |
parent | bd7633195581c7665ce9dd80c665ec93466d1b64 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
cifs: add cruid= mount option
cifs: cFYI the entire error code in map_smb_to_linux_error
-rw-r--r-- | fs/cifs/connect.c | 2 | ||||
-rw-r--r-- | fs/cifs/netmisc.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index a65d311d163a..9f59887badd2 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -1113,6 +1113,8 @@ cifs_parse_mount_options(char *options, const char *devname, | |||
1113 | } else if (!strnicmp(data, "uid", 3) && value && *value) { | 1113 | } else if (!strnicmp(data, "uid", 3) && value && *value) { |
1114 | vol->linux_uid = simple_strtoul(value, &value, 0); | 1114 | vol->linux_uid = simple_strtoul(value, &value, 0); |
1115 | uid_specified = true; | 1115 | uid_specified = true; |
1116 | } else if (!strnicmp(data, "cruid", 5) && value && *value) { | ||
1117 | vol->cred_uid = simple_strtoul(value, &value, 0); | ||
1116 | } else if (!strnicmp(data, "forceuid", 8)) { | 1118 | } else if (!strnicmp(data, "forceuid", 8)) { |
1117 | override_uid = 1; | 1119 | override_uid = 1; |
1118 | } else if (!strnicmp(data, "noforceuid", 10)) { | 1120 | } else if (!strnicmp(data, "noforceuid", 10)) { |
diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c index 9aad47a2d62f..6783ce6cdc89 100644 --- a/fs/cifs/netmisc.c +++ b/fs/cifs/netmisc.c | |||
@@ -899,8 +899,8 @@ map_smb_to_linux_error(struct smb_hdr *smb, int logErr) | |||
899 | } | 899 | } |
900 | /* else ERRHRD class errors or junk - return EIO */ | 900 | /* else ERRHRD class errors or junk - return EIO */ |
901 | 901 | ||
902 | cFYI(1, "Mapping smb error code %d to POSIX err %d", | 902 | cFYI(1, "Mapping smb error code 0x%x to POSIX err %d", |
903 | smberrcode, rc); | 903 | le32_to_cpu(smb->Status.CifsError), rc); |
904 | 904 | ||
905 | /* generic corrective action e.g. reconnect SMB session on | 905 | /* generic corrective action e.g. reconnect SMB session on |
906 | * ERRbaduid could be added */ | 906 | * ERRbaduid could be added */ |