diff options
author | Darsey Litzenberger <dlitz@dlitz.net> | 2022-07-10 21:47:45 -0700 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-07-15 07:54:14 +0900 |
commit | b5e17d7fed3ab1f1f2c64a20d904390577b53fa9 (patch) | |
tree | 780be2370f614f3aae85c27d3d69e3eda911ef6f /src/network/networkd-ipv4ll.c | |
parent | c043291774ab81cb9544efaf387f41711da5d1a2 (diff) | |
download | systemd-b5e17d7fed3ab1f1f2c64a20d904390577b53fa9.tar.gz |
udev: add flag to allow disabling blkid probing
This can be useful for users of slow block devices.
For example, the persistent-storage rules are needed for USB floppy
drives be recognized by udisks2, but the extra blkid calls cause
thrashing for 25+ seconds after every disk change.
With this change, a user wishing to avoid the extra blkid invocation(s)
could create /etc/udev/rules.d/55-floppy-noprobe.rules as follows:
# Don't probe PC floppy drives
SUBSYSTEM=="block", KERNEL=="fd*", \
ENV{UDEV_DISABLE_PERSISTENT_STORAGE_BLKID_FLAG}="1"
# Don't probe USB floppy drives
SUBSYSTEM=="block", SUBSYSTEMS=="usb", \
ATTRS{bInterfaceClass}=="08", ATTRS{bInterfaceSubClass}=="04", \
ENV{UDEV_DISABLE_PERSISTENT_STORAGE_BLKID_FLAG}="1"
I didn't exclude floppies by default in this change, because floppy
devices are also emulated by some BIOSes/hypervisors in some cases, and
I don't know how many systems would fail to boot if /dev/disk/by-uuid/*
became unavailable for 'floppy disks' on those systems.
Diffstat (limited to 'src/network/networkd-ipv4ll.c')
0 files changed, 0 insertions, 0 deletions