vfs open/close

Jeremy Allison jra at samba.org
Thu May 26 16:34:09 GMT 2005

On Thu, May 26, 2005 at 08:45:02AM +0200, Julien Thomas wrote:
> I thought I tried this...
> Do you think that when the same file is open, the fd integer is 
> different ? I don't have time to test but I remember I test something 
> like this with no success.
> I'm may be wrong but in a same connection (same vfs module 
> registration), if I open a file, close it, and reopen/close the same 
> file, fd integer will be different ? I think not.

No, it may be the same but so long as you're catching the close
as well as the open and allocating your own record at this point
then you should have all the information you need. The integer
fd has no meaning once it's closed, you need to treat it as a
temporary handle.


More information about the samba-technical mailing list