Skip to content

Commit

Permalink
cifs: map NT_STATUS_ERROR_WRITE_PROTECTED to -EROFS
Browse files Browse the repository at this point in the history
Seems like a more sensible mapping than -EIO.

Signed-off-by: Jeff Layton <[email protected]>
Signed-off-by: Steve French <[email protected]>
  • Loading branch information
jtlayton authored and Steve French committed Aug 2, 2010
1 parent f30b9c1 commit 3572d28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions fs/cifs/netmisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
1 change: 1 addition & 0 deletions fs/cifs/smberr.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
#define ERRnofiles 18 /* A File Search command can find no
more files matching the specified
criteria. */
#define ERRwriteprot 19 /* media is write protected */
#define ERRgeneral 31
#define ERRbadshare 32 /* The sharing mode specified for an
Open conflicts with existing FIDs on
Expand Down

0 comments on commit 3572d28

Please sign in to comment.