s3: Make us survive smb2.lock.rw-shared with aio enabled
authorVolker Lendecke <vl@samba.org>
Fri, 13 Jul 2012 06:38:07 +0000 (08:38 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sat, 14 Jul 2012 18:31:17 +0000 (20:31 +0200)
commit9c69a2359107b7c31feb03b9971e08645205e400
tree6b46e3260f42241a5f6c9da3e5a00c545cf6953c
parentceed322622b46be3745b32a5f6a02e634bfe1789
s3: Make us survive smb2.lock.rw-shared with aio enabled

schedule_aio_smb2_write can return NT_STATUS_FILE_LOCK_CONFLICT.
This is a valid error code that smb2.lock.rw-shared expects and
checks for. The code before this patch maps this to NT_STATUS_FILE_CLOSED,
masking the real, correct error message.

Fix bug #9040 - Using asynchronous IO with SMB2 can return NT_STATUS_FILE_CLOSED
in error instead ofNT_STATUS_FILE_LOCK_CONFLICT.
source3/smbd/smb2_write.c