VFS version error

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Mar 2 23:51:02 MST 2015


On Tue, Mar 03, 2015 at 04:23:04AM +0000, Sharayu Mantri wrote:
> Okay, So I want to intercept Open , close, read, write, create file, and
> various similar directory calls . If any file is opened from the shared
> folder in client , that moment before the VFS open call, my function should
> be executed which takes the details of the file which is opened , like path
> , last accesed, last modified, and various other. and update that into my
> berkeley database.
> after updation move the file from directory to some other directory
> (depending on policy , logic of project ) and after moving open system call
> can be executed.
> 
> So, what i need is the open call to be called only once for each. Is that
> possible ? If not what other options I have?

What open calls are done entirely depends on client
behaviour. This is something we don't have under control at
all and varies a lot based on client OS version, installed
software on the client and a lot of other things. I've seen
virus scanners on the client doing very weird things here.
You can't depend on a file being opened only once.

Sorry, without knowing *why* you need to do this I believe
we can close this thread here.

With best regards,

Volker Lendecke

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de


More information about the samba-technical mailing list