Re: Using get_cwd inside a module.

From: Michael Welles
Date: Sat Nov 22 2003 - 12:18:46 EST



--- Christoph Hellwig <hch@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/