s3: Make us survive smb2.lock.rw-shared with aio enabled
commit8f6116e98fc83088314266d80bff559afe5afbda
authorVolker Lendecke <vl@samba.org>
Fri, 13 Jul 2012 06:38:07 +0000 (13 08:38 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 24 Jul 2012 19:33:04 +0000 (24 21:33 +0200)
treed29dfa71332fbac56722c6739389b31436fc2cac
parentb33a97c5b057e68e0fdf85f5b234b99896349db2
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.
(cherry picked from commit 9c69a2359107b7c31feb03b9971e08645205e400)
source3/smbd/smb2_write.c