GRAYBYTE WORDPRESS FILE MANAGER9029

Server IP : 198.54.121.189 / Your IP : 216.73.216.34
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /lib/udev/rules.d/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /lib/udev/rules.d//10-dm.rules
# Copyright (C) 2009 Red Hat, Inc. All rights reserved.
#
# This file is part of LVM2.

# Udev rules for device-mapper devices.
#
# These rules create a DM control node in /dev/mapper directory.
# The rules also create nodes named dm-x (x is a number) in /dev
# directory and symlinks to these nodes with names given by
# the actual DM names. Some udev environment variables are set
# for use in later rules:
#   DM_NAME - actual DM device's name
#   DM_UUID - UUID set for DM device (blank if not specified)
#   DM_SUSPENDED - suspended state of DM device (0 or 1)
#   DM_UDEV_RULES_VSN - DM udev rules version
#
# These rules cover only basic device-mapper functionality in udev.
#
# Various DM subsystems may contain further subsystem-specific rules
# in 11-dm-<subsystem_name>.rules which should be installed together
# with the DM subsystem and which extend these basic rules.
# For example:
#   11-dm-lvm.rules for LVM subsystem
#   11-dm-mpath.rules for multipath subsystem (since version 0.6.0, recommended!)
#
# Even more specific rules may be required by subsystems so always
# check subsystem's upstream repository for recent set of rules.
# Also, keep in mind that recent rules may also require recent
# subsystem-specific binaries.

KERNEL=="device-mapper", NAME="mapper/control"

SUBSYSTEM!="block", GOTO="dm_end"
KERNEL!="dm-[0-9]*", GOTO="dm_end"


# Device created, major and minor number assigned - "add" event generated.
# Table loaded - no event generated.
# Device resumed (or renamed) - "change" event generated.
# Device removed - "remove" event generated.
#
# The dm-X nodes are always created, even on "add" event, we can't suppress
# that (the node is created even earlier with devtmpfs). All the symlinks
# (e.g. /dev/mapper) are created in right time after a device has its table
# loaded and is properly resumed. For this reason, direct use of dm-X nodes
# is not recommended.
ACTION!="add|change", GOTO="dm_end"

# Decode udev control flags and set environment variables appropriately.
# These flags are encoded in DM_COOKIE variable that was introduced in
# kernel version 2.6.31. Therefore, we can use this feature with
# kernels >= 2.6.31 only. Cookie is not decoded for remove event.
ENV{DM_COOKIE}=="?*", IMPORT{program}="/usr/sbin/dmsetup udevflags $env{DM_COOKIE}"

# Rule out easy-to-detect inappropriate events first.
ENV{DISK_RO}=="1", GOTO="dm_disable"

# There is no cookie set nor any flags encoded in events not originating
# in libdevmapper so we need to detect this and try to behave correctly.
# For such spurious events, regenerate all flags from current udev database content
# (this information would normally be inaccessible for spurious ADD and CHANGE events).
ENV{DM_UDEV_PRIMARY_SOURCE_FLAG}=="1", ENV{DM_ACTIVATION}="1", GOTO="dm_flags_done"
IMPORT{db}="DM_UDEV_DISABLE_DM_RULES_FLAG"
IMPORT{db}="DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG"
IMPORT{db}="DM_UDEV_DISABLE_DISK_RULES_FLAG"
IMPORT{db}="DM_UDEV_DISABLE_OTHER_RULES_FLAG"
IMPORT{db}="DM_UDEV_LOW_PRIORITY_FLAG"
IMPORT{db}="DM_UDEV_DISABLE_LIBRARY_FALLBACK_FLAG"
IMPORT{db}="DM_UDEV_PRIMARY_SOURCE_FLAG"
IMPORT{db}="DM_UDEV_FLAG7"
IMPORT{db}="DM_UDEV_RULES_VSN"
LABEL="dm_flags_done"

# Normally, we operate on "change" events. But when coldplugging, there's an
# "add" event present. We have to recognize this and do our actions in this
# particular situation, too. Also, we don't want the nodes to be created
# prematurely on "add" events while not coldplugging. We check
# DM_UDEV_PRIMARY_SOURCE_FLAG to see if the device was activated correctly
# before and if not, we ignore the "add" event totally. This way we can support
# udev triggers generating "add" events (e.g. "udevadm trigger --action=add" or
# "echo add > /sys/block/<dm_device>/uevent"). The trigger with "add" event is
# also used at boot to reevaluate udev rules for all existing devices activated
# before (e.g. in initrd). If udev is used in initrd, we require the udev init
# script to not remove the existing udev database so we can reuse the information
# stored at the time of device activation in the initrd.
ACTION!="add", GOTO="dm_no_coldplug"
ENV{DM_UDEV_RULES_VSN}!="1", ENV{DM_UDEV_PRIMARY_SOURCE_FLAG}!="1", GOTO="dm_disable"
ENV{DM_ACTIVATION}="1"
LABEL="dm_no_coldplug"

# Putting it together, following table is used to recognize genuine and spurious events.
# N.B. Spurious events are generated based on use of the WATCH udev
# rule or by triggering an event manually by "udevadm trigger" call
# or by "echo <event_name> > /sys/block/dm-X/uevent".
#
#        EVENT              DM_UDEV_PRIMARY_SOURCE_FLAG   DM_ACTIVATION
# ======================================================================
# add event (genuine)                  0                        0
# change event (genuine)               1                        1
# add event (spurious)
#   |_ dev still not active            0                        0
#   \_ dev already active              1                        1
# change event (spurious)
#   |_ dev still not active            0                        0
#   \_ dev already active              1                        0

# "dm" sysfs subdirectory is available in newer versions of DM
# only (kernels >= 2.6.29). We have to check for its existence
# and use dmsetup tool instead to get the DM name, uuid and 
# suspended state if the "dm" subdirectory is not present.
# The "suspended" item was added even later (kernels >= 2.6.31),
# so we also have to call dmsetup if the kernel version used
# is in between these releases.
TEST=="dm", ENV{DM_NAME}="$attr{dm/name}", ENV{DM_UUID}="$attr{dm/uuid}", ENV{DM_SUSPENDED}="$attr{dm/suspended}"
TEST!="dm", IMPORT{program}="/usr/sbin/dmsetup info -j %M -m %m -c --nameprefixes --noheadings --rows -o name,uuid,suspended"
ENV{DM_SUSPENDED}!="?*", IMPORT{program}="/usr/sbin/dmsetup info -j %M -m %m -c --nameprefixes --noheadings --rows -o suspended"

# dmsetup tool provides suspended state information in textual
# form with values "Suspended"/"Active". We translate it to
# 0/1 respectively to be consistent with sysfs values.
ENV{DM_SUSPENDED}=="Active", ENV{DM_SUSPENDED}="0"
ENV{DM_SUSPENDED}=="Suspended", ENV{DM_SUSPENDED}="1"

# This variable provides a reliable way to check that device-mapper
# rules were installed. It means that all needed variables are set
# by these rules directly so there's no need to acquire them again
# later. Other rules can alternate the functionality based on this
# fact (e.g. fallback to rules that behave correctly even without
# these rules installed). It also provides versioning for any
# possible future changes.
# VSN 1 - original rules
# VSN 2 - add support for synthesized events
ENV{DM_UDEV_RULES_VSN}="2"

ENV{DM_UDEV_DISABLE_DM_RULES_FLAG}!="1", ENV{DM_NAME}=="?*", SYMLINK+="mapper/$env{DM_NAME}"

# Avoid processing and scanning a DM device in the other (foreign)
# rules if it is in suspended state. However, we still keep 'disk'
# and 'DM subsystem' related rules enabled in this case.
ENV{DM_SUSPENDED}=="1", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="1"

GOTO="dm_end"

LABEL="dm_disable"
ENV{DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG}="1"
ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}="1"
ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="1"
OPTIONS:="nowatch"

LABEL="dm_end"

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
April 24 2025 08:40:48
root / root
0755
10-dm.rules
7.096 KB
March 11 2025 09:38:29
root / root
0444
11-dm-parts.rules
1.408 KB
April 22 2025 01:55:39
root / root
0644
13-dm-disk.rules
1.752 KB
March 11 2025 09:38:29
root / root
0444
40-elevator.rules
0.711 KB
April 22 2025 01:57:50
root / root
0644
40-redhat.rules
1.791 KB
April 22 2025 01:57:53
root / root
0644
40-usb-blacklist.rules
0.446 KB
October 08 2022 10:09:12
root / root
0644
50-udev-default.rules
3.662 KB
April 22 2025 01:58:19
root / root
0644
60-alias-kmsg.rules
0.349 KB
April 22 2025 01:57:55
root / root
0644
60-block.rules
0.611 KB
April 22 2025 01:57:50
root / root
0644
60-cdrom_id.rules
1.046 KB
June 22 2018 11:11:49
root / root
0644
60-drm.rules
0.403 KB
June 22 2018 11:11:49
root / root
0644
60-evdev.rules
0.951 KB
June 22 2018 11:11:49
root / root
0644
60-fido-id.rules
0.161 KB
April 22 2025 01:57:54
root / root
0644
60-input-id.rules
0.275 KB
June 22 2018 11:11:49
root / root
0644
60-net.rules
0.126 KB
August 10 2022 13:03:37
root / root
0644
60-persistent-alsa.rules
0.602 KB
June 22 2018 11:11:49
root / root
0644
60-persistent-input.rules
2.646 KB
June 22 2018 11:11:49
root / root
0644
60-persistent-storage-tape.rules
1.613 KB
April 22 2025 01:57:57
root / root
0644
60-persistent-storage.rules
6.375 KB
June 22 2018 11:11:49
root / root
0644
60-persistent-v4l.rules
0.751 KB
June 22 2018 11:11:49
root / root
0644
60-raw.rules
0.318 KB
April 06 2024 13:02:51
root / root
0644
60-sensor.rules
0.71 KB
June 22 2018 11:11:49
root / root
0644
60-serial.rules
1.162 KB
June 22 2018 11:11:49
root / root
0644
60-tpm-udev.rules
0.206 KB
October 17 2019 03:56:47
root / root
0644
61-scsi-sg3_id.rules
4.665 KB
September 18 2017 19:15:01
root / root
0644
63-fc-wwpn-id.rules
0.609 KB
October 08 2022 10:09:12
root / root
0644
63-scsi-sg3_symlink.rules
2.817 KB
October 29 2015 20:52:08
root / root
0644
64-btrfs.rules
0.602 KB
April 22 2025 01:58:19
root / root
0644
65-context.rules
1.538 KB
June 12 2023 16:03:36
root / root
0644
65-libwacom.rules
1.134 KB
September 15 2020 02:12:29
root / root
0644
66-kpartx.rules
1.122 KB
April 22 2025 01:55:39
root / root
0644
68-del-part-nodes.rules
1.115 KB
April 22 2025 01:55:39
root / root
0644
70-joystick.rules
0.422 KB
June 22 2018 11:11:49
root / root
0644
70-mouse.rules
0.717 KB
June 22 2018 11:11:49
root / root
0644
70-power-switch.rules
0.555 KB
June 22 2018 11:11:49
root / root
0644
70-touchpad.rules
0.462 KB
June 22 2018 11:11:49
root / root
0644
70-uaccess.rules
2.608 KB
June 22 2018 11:11:49
root / root
0644
71-biosdevname.rules
0.972 KB
October 18 2019 20:07:58
root / root
0644
71-prefixdevname.rules
0.394 KB
December 16 2019 19:52:15
root / root
0644
71-seat.rules
2.693 KB
April 22 2025 01:58:19
root / root
0644
73-idrac.rules
0.309 KB
April 22 2025 01:57:49
root / root
0644
73-seat-late.rules
0.621 KB
April 22 2025 01:58:24
root / root
0644
75-net-description.rules
0.441 KB
June 22 2018 11:11:49
root / root
0644
75-probe_mtd.rules
0.17 KB
June 22 2018 11:11:49
root / root
0644
78-sound-card.rules
4.703 KB
June 22 2018 11:11:49
root / root
0644
80-drivers.rules
0.601 KB
June 22 2018 11:11:49
root / root
0644
80-libinput-device-groups.rules
0.206 KB
June 29 2022 09:12:07
root / root
0644
80-net-setup-link.rules
0.285 KB
June 22 2018 11:11:49
root / root
0644
84-nm-drivers.rules
0.521 KB
October 10 2022 13:57:58
root / root
0644
85-nm-unmanaged.rules
1.966 KB
October 11 2022 07:42:01
root / root
0644
90-iprutils.rules
0.068 KB
May 08 2020 14:19:42
root / root
0644
90-libinput-fuzz-override.rules
1.076 KB
June 29 2022 09:12:07
root / root
0644
90-nm-thunderbolt.rules
0.574 KB
October 10 2022 13:57:58
root / root
0644
90-vconsole.rules
0.498 KB
April 22 2025 01:58:19
root / root
0644
90-wireshark-usbmon.rules
0.047 KB
October 15 2023 03:47:26
root / root
0644
91-drm-modeset.rules
0.055 KB
October 11 2023 21:18:04
root / root
0644
95-dm-notify.rules
0.472 KB
March 11 2025 09:38:29
root / root
0444
98-kexec.rules
0.679 KB
September 24 2024 08:36:00
root / root
0644
99-nfs.rules
0.093 KB
June 04 2025 10:53:59
root / root
0644
99-qemu-guest-agent.rules
0.127 KB
November 05 2024 14:42:36
root / root
0644
99-systemd.rules
4.265 KB
April 22 2025 01:58:19
root / root
0644
99-vmware-scsi-udev.rules
0.448 KB
October 03 2023 09:03:52
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF