1# do not edit this file, it will be overwritten on update
2
3SUBSYSTEM!="block", GOTO="btrfs_end"
4ACTION=="remove", GOTO="btrfs_end"
5ENV{ID_FS_TYPE}!="btrfs", GOTO="btrfs_end"
6ENV{SYSTEMD_READY}=="0", GOTO="btrfs_end"
7
8# let the kernel know about this btrfs filesystem, and check if it is complete
9IMPORT{builtin}="btrfs ready $devnode"
10
11# mark the device as not ready to be used by the system
12ENV{ID_BTRFS_READY}=="0", ENV{SYSTEMD_READY}="0"
13
14# reconsider pending devices in case when multidevice volume awaits
15ENV{ID_BTRFS_READY}=="1", RUN+="/usr/bin/udevadm trigger -s block -p ID_BTRFS_READY=0"
16
17LABEL="btrfs_end"
18