Commit 3572d2857f61f720082740cc17e2d99b45e7af7f

Authored by Jeff Layton
Committed by Steve French
1 parent f30b9c1184

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

... ... @@ -61,6 +61,7 @@
61 61 {ERRremcd, -EACCES},
62 62 {ERRdiffdevice, -EXDEV},
63 63 {ERRnofiles, -ENOENT},
  64 + {ERRwriteprot, -EROFS},
64 65 {ERRbadshare, -ETXTBSY},
65 66 {ERRlock, -EACCES},
66 67 {ERRunsup, -EINVAL},
... ... @@ -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