64-btrfs-dm.rules 387 B

12345678910
  1. SUBSYSTEM!="block", GOTO="btrfs_end"
  2. KERNEL!="dm-[0-9]*", GOTO="btrfs_end"
  3. ACTION!="add|change", GOTO="btrfs_end"
  4. ENV{ID_FS_TYPE}!="btrfs", GOTO="btrfs_end"
  5. # Once the device mapper symlink is created, tell btrfs about it
  6. # so we get the friendly name in /proc/mounts (and tools that read it)
  7. ENV{DM_NAME}=="?*", RUN{builtin}+="btrfs ready /dev/mapper/$env{DM_NAME}"
  8. LABEL="btrfs_end"