On Wed, 01.12.10 15:39, Michal Schmidt ([email protected]) wrote: > IN_ATTRIB was added in commit 782195a3c31a79428874a32e0264c0aa97a664f7: > Author: Lennart Poettering <[email protected]> > Date: Mon Nov 15 00:47:29 2010 +0100 > > path: always look for IN_ATTRIB since deletion is signalled that way > > But I do not understand what deletion is the description referring to.
when a file is deleted its link count drops to zero. That's how inotify tells us about deletion. given that it is not possible to delete a dir without emptying it first it is probably safe to set IN_ATTRIB only for the last component of the path that exists and leave it unset for all its prefixes. Lennart -- Lennart Poettering - Red Hat, Inc. _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
