Skip to content
Permalink
Browse files

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.
  • Loading branch information
g0tar authored and poettering committed Sep 7, 2017
1 parent 682f770 commit 0e8856d25ab71764a279c2377ae593c0f2460d8f
Showing with 4 additions and 1 deletion.
  1. +3 −0 rules/{64-btrfs.rules → 64-btrfs.rules.in}
  2. +1 −1 rules/meson.build
@@ -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()

0 comments on commit 0e8856d

Please sign in to comment.
You can’t perform that action at this time.