r3539: much nicer async open delay code.
authorAndrew Tridgell <tridge@samba.org>
Fri, 5 Nov 2004 01:14:06 +0000 (01:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:05:29 +0000 (13:05 -0500)
commiteded2ad9c91f5ba587ef4f7f5f5a6dceb4b51ff3
treec4210618f53fd995ee0d578fec69a1c5378c95a5
parent6fab01df000a126d2d01c41ead952d027f755309
r3539: much nicer async open delay code.

The previous code didn't handle the case where the file got renamed or
deleted while waiting for the sharing violation delay. To handle this
we need to make the 2nd open a full open call, including the name
resolve call etc. Luckily this simplifies the logic.

I also expanded the RAW-MUX test to include the case where we do
open/open/open/close/close, with the 3rd open async, and that open
gets retried after both the first close and the 2nd close, with the
first retry failing and the 2nd retry working. The tests the "async
reply after a async reply" logic in pvfs_open().
source/ntvfs/common/opendb.c
source/ntvfs/posix/pvfs_open.c
source/smb_server/smb_server.c
source/torture/raw/mux.c