mirror of https://gitee.com/openkylin/systemd.git
fe12b0154a
blkid reports bcache superblock dev.uuid as a filesystem UUID but it actually is not a filesystem, it's the UUID of the backing device, which is maintained at /dev/bcache/by-uuid instead of /dev/disk/by-uuid. [Forwarding Note] There is an on-going discussion upstream whether this patch should exist. This patch is not a FIX to LP: #1861941, but can work as a mitigation. The FIX for LP: #1861941 is the bcache-tools (0003-Add-bcache-export-cached- helper.patch). Ryan Harper arguments are that blkid - and/or udev default rules - should skip devices with "ID_FS_TYPE = bcache" by default from creating symlinks at /dev/disk/{by-uuid,by-label}/{ID_FS_UUID_ENC,ID_FS_LABEL_ENC} just because those devices aren't meant to be used directly (as they are backing devices to bcache). Actually this is what was causing the issue fixed by bcache-tools udev rules: symlink management for bcache backing devices were removing /dev/bcache/xxx symlinks. Considering that this is a minor delta, and I agree to Ryan's arguments, of not having /dev/disk/by-uuid/xxx symlinks to devices that should not be accessed directly, thus giving a better experience to end user, I'm keeping this until either upstream provides it by default OR the patch 0003-Add-bcache-export-cached-helper.patch can be removed from bcache-tools because udev and/or libblkid started differentiating UUID_CACHED and FS_UUID when doing /dev/disk/ symlinks. - rafaeldtinoco Author: Ryan Harper <ryan.harper@canonical.com> Bug-Ubuntu: https://bugs.launchpad.net/bugs/1861941 Forwarded: https://github.com/systemd/systemd/pull/16317 Reviewed-by: Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Last-Update: 2020-07-23 Gbp-Pq: Name lp1861941-dont-generate-disk-byuuid-for-bcache-uuid.patch |
||
---|---|---|
.. | ||
50-udev-default.rules.in | ||
60-autosuspend.rules | ||
60-block.rules | ||
60-cdrom_id.rules | ||
60-drm.rules | ||
60-evdev.rules | ||
60-fido-id.rules | ||
60-input-id.rules | ||
60-persistent-alsa.rules | ||
60-persistent-input.rules | ||
60-persistent-storage-tape.rules | ||
60-persistent-storage.rules | ||
60-persistent-v4l.rules | ||
60-sensor.rules | ||
60-serial.rules | ||
64-btrfs.rules.in | ||
70-camera.rules | ||
70-joystick.rules | ||
70-memory.rules | ||
70-mouse.rules | ||
70-power-switch.rules | ||
70-touchpad.rules | ||
70-uaccess.rules.in | ||
71-seat.rules.in | ||
73-seat-late.rules.in | ||
75-net-description.rules | ||
75-probe_mtd.rules | ||
78-sound-card.rules | ||
80-drivers.rules | ||
80-net-setup-link.rules | ||
81-net-dhcp.rules | ||
90-vconsole.rules.in | ||
99-systemd.rules.in | ||
README | ||
meson.build |
README
Files in this directory contain configuration for systemd-udevd.service, a daemon that manages symlinks to device nodes, permissions of devices nodes, emits device events for userspace, and renames network interfaces. See man:udev(7) for an overview of the configuration file format, and man:systemd-udevd.service(8) for a description of service itself. Use 'systemd-analyze cat-config udev/rules.d' to display the effective config.