64-btrfs.rules 612 B

1234567891011121314151617
  1. # do not edit this file, it will be overwritten on update
  2. SUBSYSTEM!="block", GOTO="btrfs_end"
  3. ACTION=="remove", GOTO="btrfs_end"
  4. ENV{ID_FS_TYPE}!="btrfs", GOTO="btrfs_end"
  5. ENV{SYSTEMD_READY}=="0", GOTO="btrfs_end"
  6. # let the kernel know about this btrfs filesystem, and check if it is complete
  7. IMPORT{builtin}="btrfs ready $devnode"
  8. # mark the device as not ready to be used by the system
  9. ENV{ID_BTRFS_READY}=="0", ENV{SYSTEMD_READY}="0"
  10. # reconsider pending devices in case when multidevice volume awaits
  11. ENV{ID_BTRFS_READY}=="1", RUN+="/bin/udevadm trigger -s block -p ID_BTRFS_READY=0"
  12. LABEL="btrfs_end"