Patchset to add asynchronous open/close to master

David Collier-Brown davec-b at rogers.com
Wed Jun 20 10:50:06 MDT 2012


On 06/20/2012 12:24 PM, Jeremy Allison wrote:
> . In addition, an idea from a conversation I had with you means I add
> in O_EXCL into the flags - even if the client did not specify this. I
> save off the initial flags the client requested. So the open inside
> the thread can only create a file, never open an existing file. If the
> open fails with EEXIST, then we know we were raced,

That's elegant: a classic form of the old (ancient?) use of O_EXCL
and/or creat, to do something other than create lock files.

--dave (feeling ancient) c-b

-- 
David Collier-Brown,         | Always do right. This will gratify
System Programmer and Author | some people and astonish the rest
davecb at spamcop.net           |                      -- Mark Twain
(416) 223-8968



More information about the samba-technical mailing list