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"
6 # Once the device mapper symlink is created, tell btrfs about it
7 # so we get the friendly name in /proc/mounts (and tools that read it)
8 ENV{DM_NAME}=="?*", RUN{builtin}+="btrfs ready /dev/mapper/$env{DM_NAME}"