Submit
Path:
~
/
/
lib
/
udev
/
rules.d
/
File Content:
11-dm-lvm.rules
# 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!="add|change", 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" OPTIONS+="event_timeout=180" # 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"
Submit
FILE
FOLDER
Name
Size
Permission
Action
01-md-raid-creating.rules
321 bytes
0644
10-dm.rules
7266 bytes
0444
11-dm-lvm.rules
2454 bytes
0444
13-dm-disk.rules
1794 bytes
0444
40-redhat-disable-dell-ir-camera.rules
135 bytes
0644
40-redhat-disable-lenovo-ir-camera.rules
496 bytes
0644
40-redhat.rules
1786 bytes
0644
42-usb-hid-pm.rules
2207 bytes
0644
50-udev-default.rules
3284 bytes
0644
60-alias-kmsg.rules
357 bytes
0644
60-cdrom_id.rules
910 bytes
0644
60-drm.rules
153 bytes
0644
60-evdev.rules
532 bytes
0644
60-keyboard.rules
821 bytes
0644
60-net.rules
129 bytes
0644
60-persistent-alsa.rules
616 bytes
0644
60-persistent-input.rules
2464 bytes
0644
60-persistent-serial.rules
947 bytes
0644
60-persistent-storage-tape.rules
1563 bytes
0644
60-persistent-storage.rules
7272 bytes
0644
60-persistent-v4l.rules
769 bytes
0644
60-raw.rules
326 bytes
0644
61-accelerometer.rules
166 bytes
0644
63-md-raid-arrays.rules
2377 bytes
0644
64-btrfs-dm.rules
387 bytes
0644
64-btrfs.rules
418 bytes
0644
65-md-incremental.rules
2992 bytes
0644
69-dm-lvm-metad.rules
6375 bytes
0444
69-md-clustered-confirm-device.rules
858 bytes
0644
70-mouse.rules
734 bytes
0644
70-power-switch.rules
706 bytes
0644
70-touchpad.rules
345 bytes
0644
70-uaccess.rules
2591 bytes
0644
71-biosdevname.rules
1086 bytes
0644
71-seat.rules
2360 bytes
0644
73-idrac.rules
316 bytes
0644
73-seat-late.rules
596 bytes
0644
75-net-description.rules
452 bytes
0644
75-probe_mtd.rules
174 bytes
0644
75-tty-description.rules
426 bytes
0644
76-phys-port-name.rules
473 bytes
0644
78-sound-card.rules
4400 bytes
0644
80-drivers.rules
618 bytes
0644
80-net-name-slot.rules
491 bytes
0644
80-net-setup-link.rules
292 bytes
0644
81-kvm-rhel.rules
92 bytes
0644
90-iprutils.rules
70 bytes
0644
90-vconsole.rules
441 bytes
0644
91-drm-modeset.rules
56 bytes
0644
95-dm-notify.rules
483 bytes
0444
95-udev-late.rules
155 bytes
0644
98-kexec.rules
695 bytes
0644
99-systemd.rules
4072 bytes
0644
N4ST4R_ID | Naxtarrr