mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
path: don't use IN_ATTRIB on parent dirs when watching a file, since those cannot be removed without emptying the dir first anyway and we need IN_ATTRIB only to detect the link count dropping to 0
This commit is contained in:
parent
430c18ed7f
commit
3fc546f93d
3
TODO
3
TODO
@ -11,9 +11,6 @@ F15:
|
||||
* load EnvironmentFile= when starting services, not when reloading configuration
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=661282
|
||||
|
||||
* drop IN_ATTRIB from inotify watches for .path units where possible to avoid
|
||||
lots of wakeups due to /dev changing when we watch a subdir of /dev.
|
||||
|
||||
* NFS, networkmanager ordering issue
|
||||
|
||||
* add fstab fields to add wait timeouts, change Wants to Requires by local-fs.target
|
||||
|
@ -223,9 +223,9 @@ static int path_watch_one(Path *p, PathSpec *s) {
|
||||
/* Trim the path at the last slash. Keep the slash if it's the root dir. */
|
||||
slash[slash == k] = 0;
|
||||
|
||||
flags = IN_DELETE_SELF|IN_MOVE_SELF|IN_ATTRIB;
|
||||
flags = IN_MOVE_SELF;
|
||||
if (!exists)
|
||||
flags |= IN_CREATE | IN_MOVED_TO;
|
||||
flags |= IN_DELETE_SELF | IN_ATTRIB | IN_CREATE | IN_MOVED_TO;
|
||||
|
||||
if (inotify_add_watch(s->inotify_fd, k, flags) >= 0)
|
||||
exists = true;
|
||||
|
Loading…
Reference in New Issue
Block a user