404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.145.100.227: ~ $
# 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"
TEST!="/etc/multipath.conf", 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 Conflicts=initrd-cleanup.service --timer-property Before=initrd-cleanup.service --timer-property AccuracySec=500ms --property DefaultDependencies=no --property Conflicts=shutdown.target --property Before=shutdown.target --property Conflicts=initrd-cleanup.service --property Before=initrd-cleanup.service --on-active=$env{FIND_MULTIPATHS_WAIT_UNTIL} /usr/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+="/usr/bin/systemctl stop cancel-multipath-wait-$kernel.timer"

LABEL="end_mpath"

Filemanager

Name Type Size Permission Actions
01-md-raid-creating.rules File 321 B 0644
10-dm.rules File 7.1 KB 0444
11-dm-lvm.rules File 2.37 KB 0444
11-dm-mpath.rules File 4.46 KB 0644
11-dm-parts.rules File 1.41 KB 0644
13-dm-disk.rules File 1.75 KB 0444
40-elevator.rules File 728 B 0644
40-redhat.rules File 1.79 KB 0644
40-usb-blacklist.rules File 457 B 0644
50-udev-default.rules File 3.66 KB 0644
60-alias-kmsg.rules File 357 B 0644
60-block.rules File 626 B 0644
60-cdrom_id.rules File 1.05 KB 0644
60-drm.rules File 413 B 0644
60-evdev.rules File 974 B 0644
60-fido-id.rules File 165 B 0644
60-input-id.rules File 282 B 0644
60-net.rules File 129 B 0644
60-persistent-alsa.rules File 616 B 0644
60-persistent-input.rules File 2.65 KB 0644
60-persistent-storage-tape.rules File 1.61 KB 0644
60-persistent-storage.rules File 6.38 KB 0644
60-persistent-v4l.rules File 769 B 0644
60-raw.rules File 326 B 0644
60-sensor.rules File 727 B 0644
60-serial.rules File 1.16 KB 0644
60-tpm-udev.rules File 211 B 0644
61-scsi-sg3_id.rules File 4.67 KB 0644
62-multipath.rules File 3.93 KB 0644
63-fc-wwpn-id.rules File 624 B 0644
63-md-raid-arrays.rules File 2.57 KB 0644
63-scsi-sg3_symlink.rules File 2.82 KB 0644
64-btrfs.rules File 616 B 0644
64-md-raid-assembly.rules File 2.31 KB 0644
66-azure-ephemeral.rules File 1.91 KB 0644
66-kpartx.rules File 1.12 KB 0644
68-del-part-nodes.rules File 1.12 KB 0644
69-dm-lvm-metad.rules File 5.69 KB 0444
69-md-clustered-confirm-device.rules File 858 B 0644
70-joystick.rules File 432 B 0644
70-mouse.rules File 734 B 0644
70-power-switch.rules File 568 B 0644
70-touchpad.rules File 473 B 0644
70-uaccess.rules File 2.61 KB 0644
71-prefixdevname.rules File 403 B 0644
71-seat.rules File 2.69 KB 0644
73-idrac.rules File 316 B 0644
73-seat-late.rules File 636 B 0644
75-net-description.rules File 452 B 0644
75-probe_mtd.rules File 174 B 0644
78-sound-card.rules File 4.7 KB 0644
80-drivers.rules File 615 B 0644
80-net-setup-link.rules File 292 B 0644
80-udisks2.rules File 9.14 KB 0644
84-nm-drivers.rules File 533 B 0644
85-nm-unmanaged.rules File 1.97 KB 0644
90-fwupd-devices.rules File 281 B 0644
90-nm-thunderbolt.rules File 588 B 0644
90-vconsole.rules File 510 B 0644
91-drm-modeset.rules File 56 B 0644
95-dm-notify.rules File 483 B 0444
98-kexec.rules File 695 B 0644
99-nfs.rules File 95 B 0644
99-qemu-guest-agent.rules File 130 B 0644
99-systemd.rules File 4.26 KB 0644