Thanks Volker. Can you provide me any resource link that provides some tutorial on VFS? I shall google and find out but you might know some better resources.
Volker Lendecke wrote: > > On Tue, Dec 22, 2009 at 08:36:40PM -0800, HariK wrote: >> My interest is not in the audit module as such. I have a custom >> application >> running in uclinux that maintains a database for all entries in a >> directory >> say /mydir. When I add files or folders into the directory mydir using >> samba, I want my database to get updated correspondingly. My idea is to >> establish a message queue between my application and smbd, smbd will post >> messages with the file or folder path in the message. > > Does uclinux support inotify? Then that might be the best > API to use. > >> Could you please let me know in which file(s) of samba's source can I do >> the >> changes to hook the message queue creation and message posting stuff. It >> should be in the sources wherein the absolute destination path of the >> file >> or folder that is copied from windows using samba is visible. > > You might want to write a VFS module that hooks into the > open call. That has access to both the absolute share path > (via "handle->conn->connectpath") and the relative file > name. From that you can calculate the absolute share path. > To set up the messaging path to your database daemon, you > want to hook into the VFS connect call. > > Volker > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > -- View this message in context: http://old.nabble.com/Absolute-path-of-file-transferred-using-samba-tp26883560p26901303.html Sent from the Samba - General mailing list archive at Nabble.com. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
