Re: VFS/fcntl() feature [PATCH]

Steven N. Hirsch (shirsch@adelphia.net)
Thu, 27 Aug 1998 17:54:34 -0400 (EDT)


On Thu, 27 Aug 1998, Rene Janssen wrote:

>
> I have a new feature for the Linux virtual filesystem. My patch against
> 2.1.118 adds a new fcntl() function (F_SET_SIGVFS) that instructs the
> VFS to send a signal to userland if a specific inode (file/dir) has
> changed. You only have to open the file/dir for reading and give a mask
> and signalnr to fcntl(). Thats all. The program wakes up when something
> happens and you can do a fstat() or readdir() to figure out _what_ the
> changes are. Simple, small, no obscure API. Currently the only way to
> do this is by frequently polling which is mostly not what you would like
> to do.
>
> Please check the patch out. I dont see any complications.

I wish this was a POSIX-defined feature. Many things I write to earn my
living require knowing about changes in directories or files.

Steve

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html