Commit 3572d2857f61f720082740cc17e2d99b45e7af7f
Committed by
Steve French
1 parent
f30b9c1184
Exists in
master
and in
20 other branches
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>
Showing 2 changed files with 2 additions and 0 deletions Side-by-side Diff
fs/cifs/netmisc.c
fs/cifs/smberr.h
... | ... | @@ -76,6 +76,7 @@ |
76 | 76 | #define ERRnofiles 18 /* A File Search command can find no |
77 | 77 | more files matching the specified |
78 | 78 | criteria. */ |
79 | +#define ERRwriteprot 19 /* media is write protected */ | |
79 | 80 | #define ERRgeneral 31 |
80 | 81 | #define ERRbadshare 32 /* The sharing mode specified for an |
81 | 82 | Open conflicts with existing FIDs on |