mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Add more hints in 12-dm-permissions.rules. Add 'dmsetup splitname' and 'y|--yes' to dmsetup manpage.
This commit is contained in:
parent
3c74075fb1
commit
6c7bde0bba
@ -78,6 +78,10 @@ dmsetup \- low level logical volume management
|
||||
.B dmsetup setgeometry
|
||||
.I device_name cyl head sect start
|
||||
.br
|
||||
.B dmsetup splitname
|
||||
.I device_name
|
||||
.I [subsystem]
|
||||
.br
|
||||
|
||||
.B devmap_name
|
||||
.I major minor
|
||||
@ -138,6 +142,9 @@ Specify a one-line table directly on the command line.
|
||||
.IP \fB-u|--uuid
|
||||
.br
|
||||
Specify the uuid.
|
||||
.IP \fB-y|--yes
|
||||
.br
|
||||
Answer yes to all prompts automatically.
|
||||
.IP \fB-v|--verbose\ [-v|--verbose]
|
||||
.br
|
||||
Produce additional output.
|
||||
@ -260,6 +267,12 @@ Postponed I/O then gets re-queued for processing.
|
||||
.I device_name cyl head sect start
|
||||
.br
|
||||
Sets the device geometry to C/H/S.
|
||||
.IP \fBsplitname
|
||||
.I device_name
|
||||
.I [subsystem]
|
||||
.br
|
||||
Splits given device name into subsystem constituents.
|
||||
Default subsystem is LVM.
|
||||
.IP \fBstatus
|
||||
.I [--target target_type]
|
||||
.I [device_name]
|
||||
|
@ -20,7 +20,56 @@ KERNEL!="dm-[0-9]*", GOTO="dm_end"
|
||||
ACTION!="change", GOTO="dm_end"
|
||||
ENV{DM_UDEV_RULES_VSN}!="?*", GOTO="dm_end"
|
||||
|
||||
# Just an example...
|
||||
# ENV{DM_NAME}=="my_device", OWNER:="peter", GROUP:="peter", MODE:="644"
|
||||
# A few demonstrational examples...
|
||||
|
||||
|
||||
# PLAIN DM DEVICES
|
||||
#
|
||||
# Set permissions for a DM device named 'my_device' exactly
|
||||
# ENV{DM_NAME}=="my_device", OWNER:="root", GROUP:="root", MODE:="660"
|
||||
|
||||
# Set permissions for all DM devices having 'MY_UUID-' UUID prefix
|
||||
# ENV{DM_UUID}=="MY_UUID-?*", OWNER:="root", GROUP:="root", MODE:="660"
|
||||
|
||||
|
||||
# LVM DEVICES
|
||||
#
|
||||
# Set permissions for all LVM devices
|
||||
# ENV{DM_UUID}=="LVM-?*", OWNER:="root", GROUP:="root", MODE:="660"
|
||||
|
||||
# Set permissions for all devices that belong to one LVM VG
|
||||
# ENV{DM_VG_NAME}=="VolGroup00", OWNER:="root", GROUP:="root", MODE:="660"
|
||||
|
||||
# Set permissions for an LVM device with VG named VolGroup00 and LV named LogVol00 exactly
|
||||
# ENV{DM_VG_NAME}=="VolGroup00", ENV{DM_LV_NAME}=="LogVol00", OWNER:="root", GROUP:="root", MODE:="660"
|
||||
|
||||
# Set permissions for all LVM devices that does not belong to a VG named VolGroup00
|
||||
# ENV{DM_VG_NAME}!="VolGroup00", OWNER:="root", GROUP:="root", MODE:="660"
|
||||
|
||||
|
||||
# ENCRYPTED DEVICES (using cryptsetup >= 1.1)
|
||||
#
|
||||
# Set permissions for all encrypted devices created by cryptsetup (plain devices)
|
||||
# ENV{DM_UUID}=="CRYPT-PLAIN-?*", OWNER:="root", GROUP:="root", MODE:="660"
|
||||
|
||||
# Set permissions for all encrypted devices created by cryptsetup (LUKS extension)
|
||||
# ENV{DM_UUID}=="CRYPT-LUKS1-?*", OWNER:="root", GROUP:="root", MODE:="660"
|
||||
|
||||
# Set permissions for an encrypted device created by cryptsetup and having an exact luks UUID
|
||||
# ENV{DM_UUID}=="CRYPT-LUKS1-22fce5c8313c43c68d84b50a3b0fee78-?*", OWNER:="root", GROUP:="root", MODE:="660"
|
||||
|
||||
|
||||
# MULTIPATH DEVICES
|
||||
#
|
||||
# Set permissions for all multipath devices
|
||||
# ENV{DM_UUID}=="mpath-?*", OWNER:="root", GROUP:="root", MODE:="660"
|
||||
|
||||
# Set permissions for first two partitions created on a multipath device (and detected by kpartx)
|
||||
# ENV{DM_UUID}=="part[1-2]-mpath-?*", OWNER:="root", GROUP:="root", MODE:="660"
|
||||
|
||||
|
||||
# ...you can use any combination of the comparisons with the environment variables
|
||||
# listed at the beginning of this file (udev provides simple pattern matching by
|
||||
# using *, ? and [] that you can use, see 'man udev' for more information).
|
||||
|
||||
LABEL="dm_end"
|
||||
|
Loading…
Reference in New Issue
Block a user