Re: [PATCH] VFS/inotify: send netlink messages when an inotify watch has been set or removed.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jan 07, 2012 at 02:36:12PM +0100, Stef Bon wrote:
> from: Stef Bon
> 
> I would like to apply a patch to the kernel to enable the sending of a
> netlink message when setting or removing an inotify watch. My goal is
> to make FUSE filesystems notify aware.
> 
> Since inotify works in the kernel space, and FUSE filesystems are in
> userspace, FUSE fs's do not "know" when a watch has been set or
> removed.
> 
> I think it's a good thing the fs "knows" about a watch, since it can
> then set a backend specific notify watch on the backend, and report
> anything back to the kernel when something changes.
> 
> The new netlink.c file is almost a copy of the netlink.c file in
> fs/quota.
> 
> I've got a testprogram which receives messages in the group
> GENERIC/VFS_INOTIFY.
> If you want to test please email me. It just gives the information a
> watch has been set (by who, and where, which mask) and when removed
> (pid/fd/wd).

And what, pray tell, is the recepient to do with the contents of that
packet?  Pardon the bluntness, but how the hell is your FUSE fs
supposed to tell that pathname has anything to do with it, nevermind
telling which object would it relate to?  Especially when it has
no way to tell at which locations the damn thing happens to be mounted
from the caller POV.

NAK.
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux