Submit
Path:
~
/
/
usr
/
lib
/
udev
/
rules.d
/
File Content:
60-multipath.rules
# Set DM_MULTIPATH_DEVICE_PATH if the device should be handled by multipath SUBSYSTEM!="block", GOTO="end_mpath" KERNEL!="sd*|dasd*|nvme*", GOTO="end_mpath" ACTION=="remove", TEST=="/run/multipath/find_multipaths/$major:$minor", \ RUN+="/usr/bin/rm -f /run/multipath/find_multipaths/$major:$minor" ACTION!="add|change", GOTO="end_mpath" IMPORT{cmdline}="nompath" ENV{nompath}=="?*", GOTO="end_mpath" IMPORT{cmdline}="multipath" ENV{multipath}=="off", GOTO="end_mpath" ENV{DEVTYPE}!="partition", GOTO="test_dev" IMPORT{parent}="DM_MULTIPATH_DEVICE_PATH" ENV{DM_MULTIPATH_DEVICE_PATH}=="1", ENV{ID_FS_TYPE}="none", \ ENV{SYSTEMD_READY}="0" GOTO="end_mpath" LABEL="test_dev" ENV{MPATH_SBIN_PATH}="/sbin" TEST!="$env{MPATH_SBIN_PATH}/multipath", ENV{MPATH_SBIN_PATH}="/usr/sbin" # FIND_MULTIPATHS_WAIT_UNTIL is the timeout (in seconds after the # epoch). IMPORT{db}="FIND_MULTIPATHS_WAIT_UNTIL" ENV{.SAVED_FM_WAIT_UNTIL}="$env{FIND_MULTIPATHS_WAIT_UNTIL}" # multipath -u needs to know if this device has ever been exported IMPORT{db}="DM_MULTIPATH_DEVICE_PATH" # multipath -u sets DM_MULTIPATH_DEVICE_PATH and, # if "find_multipaths smart", also FIND_MULTIPATHS_WAIT_UNTIL. IMPORT{program}="$env{MPATH_SBIN_PATH}/multipath -u %k" # case 1: this is definitely multipath ENV{DM_MULTIPATH_DEVICE_PATH}=="1", \ ENV{ID_FS_TYPE}="mpath_member", ENV{SYSTEMD_READY}="0", \ GOTO="stop_wait" # case 2: this is definitely not multipath, or timeout has expired ENV{DM_MULTIPATH_DEVICE_PATH}!="2", \ GOTO="stop_wait" # Code below here is only run in "smart" mode. # multipath -u has indicated this is "maybe" multipath. # Note that DM_MULTIPATH_DEVICE_PATH has the value 2 at this point. # This value will never propagate to other rules files, because # it will be reset to 1 in the "pretend_multipath" section below. # This shouldn't happen, just in case. ENV{FIND_MULTIPATHS_WAIT_UNTIL}!="?*", GOTO="end_mpath" # Be careful not to start the timer twice. ACTION!="add", GOTO="pretend_mpath" ENV{.SAVED_FM_WAIT_UNTIL}=="?*", GOTO="pretend_mpath" # At this point, we are seeing this path for the first time, and it's "maybe" multipath. # The actual start command for the timer. # # The purpose of this command is only to make sure we will receive another # uevent eventually. *Any* uevent may cause waiting to finish if it either ends # in case 1-3 above, or if it arrives after FIND_MULTIPATHS_WAIT_UNTIL. # # Note that this will try to activate multipathd if it isn't running yet. # If that fails, the unit starts and expires nonetheless. If multipathd # startup needs to wait for other services, this wait time will add up with # the --on-active timeout. # # We must trigger an "add" event because LVM2 will only act on those. RUN+="/usr/bin/systemd-run --unit=cancel-multipath-wait-$kernel --description 'cancel waiting for multipath siblings of $kernel' --no-block --timer-property DefaultDependencies=no --timer-property Conflicts=shutdown.target --timer-property Before=shutdown.target --timer-property AccuracySec=500ms --property DefaultDependencies=no --property Conflicts=shutdown.target --property Before=shutdown.target --property Wants=multipathd.service --property After=multipathd.service --on-active=$env{FIND_MULTIPATHS_WAIT_UNTIL} /bin/udevadm trigger --action=add $sys$devpath" LABEL="pretend_mpath" ENV{DM_MULTIPATH_DEVICE_PATH}="1" ENV{SYSTEMD_READY}="0" GOTO="end_mpath" LABEL="stop_wait" # If timeout hasn't expired but we're not in "maybe" state any more, stop timer # Do this only once, and only if the timer has been started before IMPORT{db}="FIND_MULTIPATHS_WAIT_CANCELLED" ENV{FIND_MULTIPATHS_WAIT_CANCELLED}!="?*", \ ENV{FIND_MULTIPATHS_WAIT_UNTIL}=="?*", \ ENV{FIND_MULTIPATHS_WAIT_UNTIL}!="0", \ ENV{FIND_MULTIPATHS_WAIT_CANCELLED}="1", \ RUN+="/bin/systemctl stop cancel-multipath-wait-$kernel.timer" LABEL="end_mpath"
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
01-md-raid-creating.rules
321 bytes
0644
40-usb_modeswitch.rules
42861 bytes
0644
40-vm-hotadd.rules
655 bytes
0644
50-apport.rules
165 bytes
0644
50-firmware.rules
210 bytes
0644
50-udev-default.rules
4846 bytes
0644
55-dm.rules
7274 bytes
0644
55-scsi-sg3_id.rules
6664 bytes
0644
56-dm-mpath.rules
4560 bytes
0644
56-dm-parts.rules
1442 bytes
0644
56-lvm.rules
2420 bytes
0644
58-scsi-sg3_symlink.rules
2863 bytes
0644
60-autosuspend.rules
419 bytes
0644
60-block.rules
703 bytes
0644
60-cdrom_id.rules
1071 bytes
0644
60-drm.rules
413 bytes
0644
60-evdev.rules
990 bytes
0644
60-fido-id.rules
491 bytes
0644
60-input-id.rules
282 bytes
0644
60-multipath.rules
3863 bytes
0644
60-open-vm-tools.rules
250 bytes
0644
60-persistent-alsa.rules
616 bytes
0644
60-persistent-input.rules
2719 bytes
0644
60-persistent-storage-dm.rules
1794 bytes
0644
60-persistent-storage-tape.rules
2135 bytes
0644
60-persistent-storage.rules
9145 bytes
0644
60-persistent-v4l.rules
769 bytes
0644
60-sensor.rules
736 bytes
0644
60-serial.rules
1190 bytes
0644
60-tpm-udev.rules
243 bytes
0644
61-persistent-storage-android.rules
455 bytes
0644
63-md-raid-arrays.rules
2452 bytes
0644
64-btrfs-dm.rules
387 bytes
0644
64-btrfs-zoned.rules
346 bytes
0644
64-btrfs.rules
612 bytes
0644
64-md-raid-assembly.rules
1462 bytes
0644
66-azure-ephemeral.rules
1951 bytes
0644
68-del-part-nodes.rules
1141 bytes
0644
69-bcache.rules
1044 bytes
0644
69-lvm-metad.rules
5813 bytes
0644
69-md-clustered-confirm-device.rules
846 bytes
0644
70-iscsi-network-interface.rules
226 bytes
0644
70-joystick.rules
432 bytes
0644
70-memory.rules
184 bytes
0644
70-mouse.rules
734 bytes
0644
70-open-iscsi.rules
253 bytes
0644
70-power-switch.rules
576 bytes
0644
70-touchpad.rules
473 bytes
0644
70-uaccess.rules
2676 bytes
0644
71-power-switch-proliant.rules
461 bytes
0644
71-seat.rules
3810 bytes
0644
73-seat-late.rules
643 bytes
0644
73-special-net-names.rules
969 bytes
0644
75-net-description.rules
452 bytes
0644
75-probe_mtd.rules
174 bytes
0644
78-graphics-card.rules
965 bytes
0644
78-sound-card.rules
4816 bytes
0644
80-debian-compat.rules
594 bytes
0644
80-drivers.rules
617 bytes
0644
80-net-setup-link.rules
295 bytes
0644
81-net-dhcp.rules
528 bytes
0644
85-hdparm.rules
82 bytes
0644
90-bolt.rules
359 bytes
0644
90-console-setup.rules
265 bytes
0644
95-dm-notify.rules
479 bytes
0644
95-kpartx.rules
1401 bytes
0644
96-e2scrub.rules
171 bytes
0644
99-lxd-agent.rules
141 bytes
0644
99-systemd.rules
4600 bytes
0644
99-vmware-scsi-udev.rules
433 bytes
0644
N4ST4R_ID | Naxtarrr