]> git.ipfire.org Git - thirdparty/systemd.git/blob - rules.d/60-block.rules
dlfcn-util: add dlsym_many_and_warn() helper
[thirdparty/systemd.git] / rules.d / 60-block.rules
1 # do not edit this file, it will be overwritten on update
2
3 # enable in-kernel media-presence polling
4 ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_poll_msecs}=="0", \
5 ATTR{parameters/events_dfl_poll_msecs}="2000"
6
7 # forward scsi device event to corresponding block device
8 ACTION=="change", SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST=="block", ATTR{block/*/uevent}="change"
9
10 # watch metadata changes, caused by tools closing the device node which was opened for writing
11 ACTION!="remove", SUBSYSTEM=="block", \
12 KERNEL=="loop*|mmcblk*[0-9]|msblk*[0-9]|mspblk*[0-9]|nvme*|sd*|vd*|xvd*|bcache*|cciss*|dasd*|ubd*|ubi*|scm*|pmem*|nbd*|zd*", \
13 OPTIONS+="watch"