]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/fuzz/fuzz-udev-rules/64-btrfs.rules
Merge pull request #11827 from keszybz/pkgconfig-variables
[thirdparty/systemd.git] / test / fuzz / fuzz-udev-rules / 64-btrfs.rules
1 # do not edit this file, it will be overwritten on update
2
3 SUBSYSTEM!="block", GOTO="btrfs_end"
4 ACTION=="remove", GOTO="btrfs_end"
5 ENV{ID_FS_TYPE}!="btrfs", GOTO="btrfs_end"
6 ENV{SYSTEMD_READY}=="0", GOTO="btrfs_end"
7
8 # let the kernel know about this btrfs filesystem, and check if it is complete
9 IMPORT{builtin}="btrfs ready $devnode"
10
11 # mark the device as not ready to be used by the system
12 ENV{ID_BTRFS_READY}=="0", ENV{SYSTEMD_READY}="0"
13
14 # reconsider pending devices in case when multidevice volume awaits
15 ENV{ID_BTRFS_READY}=="1", RUN+="/usr/bin/udevadm trigger -s block -p ID_BTRFS_READY=0"
16
17 LABEL="btrfs_end"