Re: VFS/fcntl() feature [PATCH]

Stephen C. Tweedie (sct@redhat.com)
Fri, 28 Aug 1998 12:38:59 +0100


Hi,

On Thu, 27 Aug 1998 12:09:59 +0000, Rene Janssen <reney@plex.nl> said:

> 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.

Heh --- I've just added a similar interface myself. As of 2.1.117, we
have F_SETSIG, which allows for FASYNC SIGIO callbacks which include the
number of the fd which was modified.

May I suggest that instead of a completely new API, you consider
extending the existing FASYNC and poll() functionality to cover regular
files and directories? There's no reason why the existing APIs can't
deal with these cases, and with F_SETSIG, we also have a convenient way
of letting the user find out exactly what happened when the signal
arrives.

--Stephen

-
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