]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: map NT_STATUS_SHARING_VIOLATION to EBUSY instead of ETXTBSY
authorSachin Prabhu <sprabhu@redhat.com>
Mon, 11 Mar 2013 13:08:49 +0000 (13:08 +0000)
committerSteve French <sfrench@us.ibm.com>
Wed, 13 Mar 2013 19:09:20 +0000 (14:09 -0500)
commit8c08e63f12aefeadacde2d3bef6ae84a4d9230ad
treec3923432f02c31fb2625e8fae7572839e6f8bbf7
parentd50e4944c827639a66f62aa86435f82e1f4bf8df
cifs: map NT_STATUS_SHARING_VIOLATION to EBUSY instead of ETXTBSY

NT_SHARING_VIOLATION errors are mapped to ETXTBSY which is unexpected
for operations such as unlink where we can hit these errors.

The patch maps the error NT_SHARING_VIOLATION to EBUSY instead. The
patch also replaces all instances of ETXTBSY in
cifs_rename_pending_delete() with EBUSY.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/inode.c
fs/cifs/netmisc.c