Messages in this thread | | | Date | Sat, 22 Nov 2003 09:15:48 -0800 (PST) | From | Michael Welles <> | Subject | Re: Using get_cwd inside a module. |
| |
--- Christoph Hellwig <hch@infradead.org> wrote:
> Well, you can't return filenames. There's no unique > path to a give > file. > > What are the exact requirements of changedfiles or > samba?
For changedfiles, essentially a device special that reports file operations, e.g.
OPENW /home/foo/filename MKDIR /home/foo/bar RENAME /home/foo/bar -> /home/foo/goo
The userspace deamon reads the operations and files, and compares then to regexp rules in the config file i.e, for an automatic image converter:
RULE ^/home/dropbox/*.gif SHELL /usr/bin/convert __FILE__ `basename __FILE__ .jpg`
It also does in process FTP, so you can do poor man's replication to a remote machine without the overhead of polling.
__________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |