btrfs-progs: Refactor csum_tree_block to use btrfs_fs_info
[platform/upstream/btrfs-progs.git] / 64-btrfs-dm.rules
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
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}"
9
10 LABEL="btrfs_end"