Btrfs progs v4.16.1
[btrfs-progs-unstable/devel.git] / 64-btrfs-dm.rules
blobb2e49f4e8529edecc0c31a16e5b7385590c57f68
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}"
10 LABEL="btrfs_end"