vfs open/close

Julien Thomas omnikron at free.fr
Wed May 25 23:10:22 GMT 2005

Jeremy Allison wrote:

> On Wed, May 25, 2005 at 09:24:50AM +0200, Julien Thomas wrote:
>> The trouble is that on a same connection, when the user do many open 
>> of an application, I can't know which close op is linked with which 
>> open op... This should be not a problem if I could link an open with 
>> his close using something such as an id.
> Match the fnum integer inside the files_struct struct.
> Jeremy.

Well, I have short time to make my statistics generator of samba 
connections/disconnections and open/close operations.

You just gave me a new way to explore with the fnum, but since this 
morning, I began to try another method... I plan to read periodically 
the *.tdb locks files. I made 2 apps that do the same of smbstatus is 
doing but the difference is that the results are ready to aliment my 
database (output can be easily extracted with regex and perl).

I don't know which way I will keep. Making a vfs module is better and I 
could give it to you when finished, but I'm affraid that there is no 
time to me.

Have a nice day.

More information about the samba-technical mailing list