File: 64-btrfs-dm.rules

package info (click to toggle)
btrfs-progs 4.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,916 kB
  • ctags: 4,868
  • sloc: ansic: 65,762; sh: 5,139; python: 628; makefile: 456
file content (10 lines) | stat: -rw-r--r-- 387 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
SUBSYSTEM!="block", GOTO="btrfs_end"
KERNEL!="dm-[0-9]*", GOTO="btrfs_end"
ACTION!="add|change", GOTO="btrfs_end"
ENV{ID_FS_TYPE}!="btrfs", GOTO="btrfs_end"

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

LABEL="btrfs_end"