mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-10 01:17:44 +03:00
assemble multidevice btrfs volumes without external tools (#6607)
assemble multidevice btrfs volumes without external tools This self-contained approach introduce very little overhead, unless someone has a large number of devices composing many btrfs volumes, in which case btrfs device scan would be faster. Still, having robust implementation is a nice to have alternative for btrfs-progs.
This commit is contained in:
parent
682f77059a
commit
0e8856d25a
@ -10,4 +10,7 @@ IMPORT{builtin}="btrfs ready $devnode"
|
||||
# mark the device as not ready to be used by the system
|
||||
ENV{ID_BTRFS_READY}=="0", ENV{SYSTEMD_READY}="0"
|
||||
|
||||
# reconsider pending devices in case when multidevice volume awaits
|
||||
ENV{ID_BTRFS_READY}=="1", RUN+="@rootlibexecdir@/udevadm trigger -s block -p ID_BTRFS_READY=0"
|
||||
|
||||
LABEL="btrfs_end"
|
@ -11,7 +11,6 @@ rules = files('''
|
||||
60-persistent-v4l.rules
|
||||
60-sensor.rules
|
||||
60-serial.rules
|
||||
64-btrfs.rules
|
||||
70-joystick.rules
|
||||
70-mouse.rules
|
||||
70-touchpad.rules
|
||||
@ -27,6 +26,7 @@ install_data(rules,
|
||||
|
||||
rules_in = '''
|
||||
50-udev-default.rules
|
||||
64-btrfs.rules
|
||||
99-systemd.rules
|
||||
'''.split()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user