2012/1/7 Al Viro <viro@xxxxxxxxxxxxxxxxxx>: > On Sat, Jan 07, 2012 at 04:03:26PM +0100, Stef Bon wrote: > >> Futher, the FUSE fs knows it's own mountpoint. (ignore the submounts >> on a FUSE fs here), it can filter out the watches which are set on the >> fs. > > BTW, how does FUSE fs know its mountpoint? Other than "my fs won't be > mounted other than <here> and if you mount it elsewhere, it's your problem" > I don't see any possible way to do that... Note that no information about > the intended mountpoint reaches fuse_mount() (and it would've been > useless there anyway, since mountpoint can change at literally zero > notice, so the userland side of FUSE would have no use for it), which > leaves only the apriori knowledge ("my code assumes that it'll be mounted > here, violate that assumption at your peril")... Yes you've got a point here. Absolutly, the moving of a subtree is not noticed by the fuse fs, and therefore cannot be taken into account. And yes, I agree, that the only way to deal with that is "if you do this with the fuse fs, strange things can happen type of warning". I'm happy we agree on something! But can you see a better way of making a FUSE fs (i)notify aware?? In my opinion FUSE fs's become so much more "responsive" when aware. And in near future I think that such filesystems will be used/developed to access filestorage (cloudlike such as Google docs) on the Internet, next to access to it via the browser. Not to replace existing sollutions, but to add more functionality. When moving a lot of documents (or any relevant data/files) doing that with the browser is silly and unhandy. And I like it (and I think many do) when I just can browse through the files using my favorite file browser. Access to the same files with a filesystem is then the solution. And it will be very likely a FUSE fs, since it has to use an API which will very likely not be in the kernel. And doing so, it would be a very big plus when this filesystem is "(i)notify aware", you as user want to see a file shows up in your filebrowser when you've just created it using the webbrowser. (there are already several filesystems to access webdav (oneCloud) for example, or google docs... I think there are more to come...) Maybe you can do a suggestion howto solve this (thus making a FUSE fs inotify aware) better? Stef Bon -- 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