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:
g0tar 2017-09-07 09:58:12 +02:00 committed by Lennart Poettering
parent 682f77059a
commit 0e8856d25a
2 changed files with 4 additions and 1 deletions

View File

@ -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"

View File

@ -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()