diff options
author | Jeff Layton <jlayton@redhat.com> | 2013-11-07 15:02:35 -0500 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-11-11 16:33:25 -0600 |
commit | cce0244ab0af78f8f01ad826d2f9813a9580b105 (patch) | |
tree | c231f9ba59ac2b308f0cb3ea5ff5a35fd77b8308 /fs/cifs/netmisc.c | |
parent | eb85d94bdd91fb4dbea4ee465d4349cbea4eaaca (diff) | |
download | linux-stable-cce0244ab0af78f8f01ad826d2f9813a9580b105.tar.gz linux-stable-cce0244ab0af78f8f01ad826d2f9813a9580b105.tar.bz2 linux-stable-cce0244ab0af78f8f01ad826d2f9813a9580b105.zip |
cifs: change ERRnomem error mapping from ENOMEM to EREMOTEIO
Sometimes, the server will report an error that basically indicates
that it's running out of resources. These include these under SMB1:
NT_STATUS_NO_MEMORY
NT_STATUS_SECTION_TOO_BIG
NT_STATUS_TOO_MANY_PAGING_FILES
...and this one under SMB2:
STATUS_NO_MEMORY
Currently, this gets mapped to ENOMEM by the client, but that's
confusing as an ENOMEM error is typically an indicator that the
client is out of memory.
Change these errors to instead map to EREMOTEIO to indicate that
the problem is actually server-side and not on the client.
Reported-by: "ISHIKAWA,chiaki" <ishikawa@yk.rim.or.jp>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/netmisc.c')
-rw-r--r-- | fs/cifs/netmisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c index 651a5279607b..049884552e76 100644 --- a/fs/cifs/netmisc.c +++ b/fs/cifs/netmisc.c @@ -51,7 +51,7 @@ static const struct smb_to_posix_error mapping_table_ERRDOS[] = { {ERRnoaccess, -EACCES}, {ERRbadfid, -EBADF}, {ERRbadmcb, -EIO}, - {ERRnomem, -ENOMEM}, + {ERRnomem, -EREMOTEIO}, {ERRbadmem, -EFAULT}, {ERRbadenv, -EFAULT}, {ERRbadformat, -EINVAL}, |