Yu Watanabe
54e6172550
tree-wide: use device_is_processed() more
2024-04-05 01:49:20 +09:00
Yu Watanabe
eba449fa81
sd-device-monitor: unconditionally increase buffer size by sd_device_monitor_new()
...
As suggested at https://github.com/systemd/systemd/pull/29872#discussion_r1382932633 :
> socket memory is these days accounted to the process that owns a socket,
> hence we shouldn't be too concerned that this might waste memory.
2023-11-06 20:39:51 +09:00
Daan De Meyer
a1af83728f
device-util: Declare iterator variables inline
2023-07-12 20:05:18 +02:00
Daan De Meyer
f461a28da7
chase-symlinks: Rename chase_symlinks() to chase()
...
Chasing symlinks is a core function that's used in a lot of places
so it deservers a less verbose names so let's rename it to chase()
and chaseat().
We also slightly change the pattern used for the chaseat() helpers
so we get chase_and_openat() and similar.
2023-03-24 13:43:51 +01:00
Yu Watanabe
e063db12c3
udevadm-wait: shorten code a bit
2022-09-06 06:09:55 +09:00
Yu Watanabe
f6bb2e5189
udevadm-wait: wait for two periodic timer triggered before exit
2022-09-06 06:09:55 +09:00
Yu Watanabe
9d7c7de9bd
udevadm-wait: also listen kernel uevent stream if --initialized=no
...
Suggested at https://github.com/systemd/systemd/pull/24471#discussion_r959703103 .
2022-09-06 06:09:42 +09:00
Yu Watanabe
51f42f34e6
udevadm-wait: move comments and condition outside of setup_periodic_timer()
2022-09-03 01:46:25 +09:00
Yu Watanabe
3228f89b8c
udevadm-wait: introduce periodic timer for checking devices
...
When --initialized=no is specified, it is not necessary to wait
for uevents to be processed by udevd.
2022-08-29 13:44:42 +09:00
Yu Watanabe
b1aca4da60
udevadm: wait: check if specified path not exist on --remove
...
Even if the corresponding device node or syspath are already removed,
the specified symlink to the device node may still exist.
Fixes #23166 .
2022-04-23 08:45:01 +09:00
Yu Watanabe
aa2b0d8d29
udevadm: introduce new 'wait' command
...
Prompted by https://github.com/systemd/systemd/pull/22717#issuecomment-1067348496 .
The new command 'udevadm wait' waits for device or device symlink being
created. This may be useful to wait for a device is processed by udevd
after e.g. formatting or partitioning the device.
2022-04-01 15:13:18 +09:00