CIFS: Fix STATUS_CANNOT_DELETE error mapping for SMB2
authorPavel Shilovsky <pshilovsky@samba.org>
Fri, 18 Jul 2014 14:25:52 +0000 (18:25 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Sep 2014 16:19:26 +0000 (09:19 -0700)
commit2b0111626d2bcb29a25c16a47021b4d440103e84
tree2b96887666afaeb70d7e81729f868a1277ae37ad
parent9956752afa398ea6e0c9c69b258be6afd73da4b1
CIFS: Fix STATUS_CANNOT_DELETE error mapping for SMB2

commit 21496687a79424572f46a84c690d331055f4866f upstream.

The existing mapping causes unlink() call to return error after delete
operation. Changing the mapping to -EACCES makes the client process
the call like CIFS protocol does - reset dos attributes with ATTR_READONLY
flag masked off and retry the operation.

Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/smb2maperror.c