qubes-linux-utils/udev
Marek Marczykowski-Górecki 764b0f3f07
udev: major cleanup in block devices handling
1. Do not detach device forcefully when it's removed. This breaks
libvirt (which thinks the device is still there). After this change, it
is possible to detach device using libvirt, even if it was already
removed physically from backend domain (unless it is dom0 - in which
case it is still broken). So, this is partial fix for
QubesOS/qubes-issues#1082.

2. Do not trigger "change" udev event when only QubesDB state needs to
be updated - this leads to massive udev events queue, and heavy I/O
usage - for example scanning all LVM many times. In some cases it even
caused infinite event queue.

3. Do not use QUBES_EXPOSED udev property - it was needed a while back
before QubesDB, because concurrent xenstore accesses are expensive
(because of transactions). It isn't the problem on QubesDB.

4. Cache information about device-mapper, so it is possible to
reconstruct it at device remove - when the actual device cannot be
queried anymore. This is specifically about list of lower layer devices
used.

5. Allow excluding loop devices pointing at a file in directory marked
with ".qubes-exclude-block-devices" file. This is more generic than
hardcoding /var/lib/qubes.

QubesOS/qubes-issues#3084
Fixes QubesOS/qubes-issues#3073
QubesOS/qubes-issues#1082
2017-09-12 04:25:34 +02:00
..
Makefile udev: major cleanup in block devices handling 2017-09-12 04:25:34 +02:00
udev-block-add-change udev: major cleanup in block devices handling 2017-09-12 04:25:34 +02:00
udev-block-remove udev: major cleanup in block devices handling 2017-09-12 04:25:34 +02:00
udev-qubes-block.rules udev: major cleanup in block devices handling 2017-09-12 04:25:34 +02:00
udev-qubes-misc.rules udev: allow normal user to access /dev/xen/xenbus for vchan connections 2015-03-25 00:04:45 +01:00
udev-qubes-usb.rules udev: filter-out QEMU devices 2017-08-07 23:00:53 +02:00
udev-usb-add-change udev: make USB device version detection more generic 2016-07-08 10:40:12 +02:00
udev-usb-remove udev: fix removing USB entries 2016-06-01 14:04:10 +02:00