21 lines
675 B
Plaintext
21 lines
675 B
Plaintext
|
SUBSYSTEM!="block", GOTO="btrfs_end"
|
||
|
ACTION!="add|change", GOTO="btrfs_end"
|
||
|
|
||
|
ENV{ID_FS_TYPE}=="LVM2_member|LVM1_member", GOTO="btrfs_end"
|
||
|
ENV{ID_FS_TYPE}=="linux_raid_member", GOTO="btrfs_end"
|
||
|
|
||
|
ENV{ID_FS_TYPE}=="btrfs", GOTO="btrfs_do_scan"
|
||
|
ENV{DM_UUID}=="LVM-?*", GOTO="btrfs_do_scan"
|
||
|
ENV{DM_UUID}=="LUKS-CRYPT1-?*", GOTO="btrfs_do_scan"
|
||
|
ENV{DM_UUID}=="LUKS-PLAIN-?*", GOTO="btrfs_do_scan"
|
||
|
ENV{DM_UUID}=="LUKS-VERITY-?*", GOTO="btrfs_do_scan"
|
||
|
ENV{DM_UUID}=="LUKS-LOOPAES-?*", GOTO="btrfs_do_scan"
|
||
|
ENV{MD_UUID}=="?*", GOTO="btrfs_do_scan"
|
||
|
GOTO="btrfs_end"
|
||
|
|
||
|
LABEL="btrfs_do_scan"
|
||
|
RUN+="/sbin/modprobe btrfs"
|
||
|
RUN+="/usr/sbin/btrfs device scan $env{DEVNAME}"
|
||
|
|
||
|
LABEL="btrfs_end"
|