summaryrefslogtreecommitdiffstats
path: root/fs/cifs/netmisc.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2010-07-26 16:29:57 +0200
committerSteve French <sfrench@us.ibm.com>2010-08-02 14:40:40 +0200
commit3572d2857f61f720082740cc17e2d99b45e7af7f (patch)
tree9005ee297315f68a12d2b1c749a233300fb9807e /fs/cifs/netmisc.c
parentcifs: don't allow cifs_iget to match inodes of the wrong type (diff)
downloadlinux-3572d2857f61f720082740cc17e2d99b45e7af7f.tar.xz
linux-3572d2857f61f720082740cc17e2d99b45e7af7f.zip
cifs: map NT_STATUS_ERROR_WRITE_PROTECTED to -EROFS
Seems like a more sensible mapping than -EIO. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/netmisc.c')
-rw-r--r--fs/cifs/netmisc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c
index 3489468d070b..c6721ee26dbc 100644
--- a/fs/cifs/netmisc.c
+++ b/fs/cifs/netmisc.c
@@ -61,6 +61,7 @@ static const struct smb_to_posix_error mapping_table_ERRDOS[] = {
{ERRremcd, -EACCES},
{ERRdiffdevice, -EXDEV},
{ERRnofiles, -ENOENT},
+ {ERRwriteprot, -EROFS},
{ERRbadshare, -ETXTBSY},
{ERRlock, -EACCES},
{ERRunsup, -EINVAL},