diff mbox series

cifs: map STATUS_OBJECT_NAME_EXISTS to -EEXIST and not -EIO

Message ID 20181004011941.20179-1-lsahlber@redhat.com (mailing list archive)
State New, archived
Headers show
Series cifs: map STATUS_OBJECT_NAME_EXISTS to -EEXIST and not -EIO | expand

Commit Message

Ronnie Sahlberg Oct. 4, 2018, 1:19 a.m. UTC
Reported-by: Richard Sharpe <realrichardsharpe@gmail.com>
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
---
 fs/cifs/smb2maperror.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Aurélien Aptel Oct. 4, 2018, 7:06 a.m. UTC | #1
I personally don't know of cases where the old mapping made sense so
this change LGTM.

Reviewed-by: Aurelien Aptel <aaptel@suse.com>
diff mbox series

Patch

diff --git a/fs/cifs/smb2maperror.c b/fs/cifs/smb2maperror.c
index 20a2d304c603..f299ffe353b4 100644
--- a/fs/cifs/smb2maperror.c
+++ b/fs/cifs/smb2maperror.c
@@ -100,7 +100,7 @@  static const struct status_to_posix_error smb2_error_map_table[] = {
 	{DBG_EXCEPTION_HANDLED, -EIO, "DBG_EXCEPTION_HANDLED"},
 	{DBG_CONTINUE, -EIO, "DBG_CONTINUE"},
 	{STATUS_FLT_IO_COMPLETE, -EIO, "STATUS_FLT_IO_COMPLETE"},
-	{STATUS_OBJECT_NAME_EXISTS, -EIO, "STATUS_OBJECT_NAME_EXISTS"},
+	{STATUS_OBJECT_NAME_EXISTS, -EEXIST, "STATUS_OBJECT_NAME_EXISTS"},
 	{STATUS_THREAD_WAS_SUSPENDED, -EIO, "STATUS_THREAD_WAS_SUSPENDED"},
 	{STATUS_WORKING_SET_LIMIT_RANGE, -EIO,
 	"STATUS_WORKING_SET_LIMIT_RANGE"},