PATH:
usr
/
lib
/
udev
/
rules.d
# Copyright (C) 2009 Red Hat, Inc. All rights reserved. # # This file is part of LVM2. # Udev rules for LVM. # # These rules create symlinks for LVM logical volumes in # /dev/VG directory (VG is an actual VG name). Some udev # environment variables are set (they can be used in later # rules as well): # DM_LV_NAME - logical volume name # DM_VG_NAME - volume group name # DM_LV_LAYER - logical volume layer (blank if not set) # "add" event is processed on coldplug only! ACTION=="remove", GOTO="lvm_end" ENV{DM_UDEV_RULES_VSN}!="?*", GOTO="lvm_end" ENV{DM_UUID}!="LVM-?*", GOTO="lvm_end" # Use DM name and split it up into its VG/LV/layer constituents. IMPORT{program}="/usr/sbin/dmsetup splitname --nameprefixes --noheadings --rows $env{DM_NAME}" # DM_SUBSYSTEM_UDEV_FLAG0 is the 'NOSCAN' flag for LVM subsystem. # This flag is used to temporarily disable selected rules to prevent any # processing or scanning done on the LVM volume before LVM has any chance # to zero any stale metadata found within the LV data area. Such stale # metadata could cause false claim of the LV device, keeping it open etc. # # If the NOSCAN flag is present, backup selected existing flags used to # disable rules, then set them firmly so those selected rules are surely skipped. # Restore these flags once the NOSCAN flag is dropped (which is normally any # uevent that follows for this LV, even an artificially generated one). ENV{DM_SUBSYSTEM_UDEV_FLAG0}=="1", ENV{DM_NOSCAN}="1", ENV{DM_DISABLE_OTHER_RULES_FLAG_OLD}="$env{DM_UDEV_DISABLE_OTHER_RULES_FLAG}", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="1" ENV{DM_SUBSYSTEM_UDEV_FLAG0}!="1", IMPORT{db}="DM_NOSCAN", IMPORT{db}="DM_DISABLE_OTHER_RULES_FLAG_OLD" ENV{DM_SUBSYSTEM_UDEV_FLAG0}!="1", ENV{DM_NOSCAN}=="1", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="$env{DM_DISABLE_OTHER_RULES_FLAG_OLD}", \ ENV{DM_DISABLE_OTHER_RULES_FLAG_OLD}="", ENV{DM_NOSCAN}="" ENV{DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG}=="1", GOTO="lvm_end" # Ignore private devices - the ones having any suffix in DM_UUID. Both in udev rules and in systemd. ## FIXME resolve -suffix handling ## ENV{DM_UUID}=="LVM-?*-?*", ENV{SYSTEMD_READY}="0", GOTO="lvm_disable" # Do not create symlinks for inappropriate subdevices. ENV{DM_LV_NAME}=="pvmove?*|?*_vorigin", GOTO="lvm_disable" ENV{DM_LV_LAYER}=="?*", GOTO="lvm_disable" # Create symlinks for top-level devices only. ENV{DM_VG_NAME}=="?*", ENV{DM_LV_NAME}=="?*", SYMLINK+="$env{DM_VG_NAME}/$env{DM_LV_NAME}", GOTO="lvm_end" LABEL="lvm_disable" ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}="1" ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="1" OPTIONS:="nowatch" LABEL="lvm_end"
[-] 65-scsi-cciss_id.rules
[edit]
[-] 60-evdev.rules
[edit]
[-] 91-drm-modeset.rules
[edit]
[-] 90-vconsole.rules
[edit]
[-] 60-cdrom_id.rules
[edit]
[-] 65-persistent-net-nbft.rules
[edit]
[-] 90-iprutils.rules
[edit]
[-] 70-uaccess.rules
[edit]
[-] 99-nfs.rules
[edit]
[-] 11-dm-mpath.rules
[edit]
[-] README
[edit]
[-] 71-nvmf-netapp.rules
[edit]
[-] 68-del-part-nodes.rules
[edit]
[-] 60-persistent-storage-tape.rules
[edit]
[-] 60-persistent-v4l.rules
[edit]
[-] 01-md-raid-creating.rules
[edit]
[-] 60-serial.rules
[edit]
[-] 80-drivers.rules
[edit]
[-] 60-sensor.rules
[edit]
[-] 70-nvmf-keys.rules
[edit]
[-] 62-multipath.rules
[edit]
[-] 75-probe_mtd.rules
[edit]
[-] 75-net-description.rules
[edit]
[-] 80-net-setup-link.rules
[edit]
[-] 60-net.rules
[edit]
[-] 71-seat.rules
[edit]
[-] 84-nm-drivers.rules
[edit]
[-] 11-dm-parts.rules
[edit]
[-] 66-kpartx.rules
[edit]
[-] 70-joystick.rules
[edit]
[-] 40-redhat.rules
[edit]
[-] 11-dm-lvm.rules
[edit]
[-] 70-touchpad.rules
[edit]
[-] 40-elevator.rules
[edit]
[-] 60-drm.rules
[edit]
[-] 70-libfprint-2.rules
[edit]
[-] 63-fc-wwpn-id.rules
[edit]
[-] 98-kexec.rules
[edit]
[-] 85-nm-unmanaged.rules
[edit]
[-] 60-input-id.rules
[edit]
[-] 40-usb-blacklist.rules
[edit]
[-] 61-scsi-sg3_id.rules
[edit]
[-] 90-nm-thunderbolt.rules
[edit]
[-] 70-power-switch.rules
[edit]
[-] 60-block.rules
[edit]
[-] 60-persistent-alsa.rules
[edit]
[-] 69-md-clustered-confirm-device.rules
[edit]
[-] 63-scsi-sg3_symlink.rules
[edit]
[-] 69-dm-lvm.rules
[edit]
[-] 60-persistent-storage.rules
[edit]
[-] 95-dm-notify.rules
[edit]
[+]
..
[-] 60-persistent-input.rules
[edit]
[-] 64-md-raid-assembly.rules
[edit]
[-] 70-camera.rules
[edit]
[-] 70-mouse.rules
[edit]
[-] 60-fido-id.rules
[edit]
[-] 71-prefixdevname.rules
[edit]
[-] 63-md-raid-arrays.rules
[edit]
[-] 90-pipewire-alsa.rules
[edit]
[-] 95-upower-wup.rules
[edit]
[-] 50-udev-default.rules
[edit]
[-] 13-dm-disk.rules
[edit]
[-] 60-tpm-udev.rules
[edit]
[-] 99-systemd.rules
[edit]
[-] 73-seat-late.rules
[edit]
[-] 64-btrfs.rules
[edit]
[-] 70-memory.rules
[edit]
[-] 81-net-dhcp.rules
[edit]
[-] 60-autosuspend.rules
[edit]
[-] 95-upower-hid.rules
[edit]
[-] 70-nvmf-autoconnect.rules
[edit]
[-] 78-sound-card.rules
[edit]
[-] 66-md-auto-readd.rules
[edit]
[-] 10-dm.rules
[edit]