60-block.rules 606 B

1234567891011
  1. # do not edit this file, it will be overwritten on update
  2. # enable in-kernel media-presence polling
  3. ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_poll_msecs}=="0", \
  4. ATTR{parameters/events_dfl_poll_msecs}="2000"
  5. # forward scsi device event to corresponding block device
  6. ACTION=="change", SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST=="block", ATTR{block/*/uevent}="change"
  7. # watch metadata changes, caused by tools closing the device node which was opened for writing
  8. ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*|xvd*", OPTIONS+="watch"