diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-03-07 15:35:33 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-04-30 19:41:41 +0900 |
commit | e7f781e473f5119bf9246208a6de9f6b76a39c5d (patch) | |
tree | 80ce166a1fea649dc0b61efcf32c54d4027619cf /src/udev/udev-watch.h | |
parent | 5e0d05106747d2ee25ce19a51ed8a5669ea93bf9 (diff) | |
download | systemd-e7f781e473f5119bf9246208a6de9f6b76a39c5d.tar.gz |
udev,sd_device: also save map from device ID to watch handle in /run/udev/watch
Previously, watch handle is saved in the udev databse. But in most cases,
the handle saved in the database is not updated. Especially, when udevd
is restarted, the inotify watch is restarted, but the database is not
updated.
Moreover, it is not necessary to save watch handle in the database, as
the handle is only take a effect during udevd is running, and the value
is meaningless when udevd is restarted.
So, this makes the opposite map from device ID to watch handle is saved
in /run/udev/watch as a symbolic link, and the handle not saved in the
database anymore.
Fixes #18525.
Diffstat (limited to 'src/udev/udev-watch.h')
-rw-r--r-- | src/udev/udev-watch.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/udev/udev-watch.h b/src/udev/udev-watch.h index f5c55794c4..d211d99f49 100644 --- a/src/udev/udev-watch.h +++ b/src/udev/udev-watch.h @@ -6,4 +6,3 @@ int udev_watch_restore(int inotify_fd); int udev_watch_begin(int inotify_fd, sd_device *dev); int udev_watch_end(int inotify_fd, sd_device *dev); -int udev_watch_lookup(int wd, sd_device **ret); |