mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix a typo in udev rule (splitname, NOT namesplit)
This commit is contained in:
parent
252239bdac
commit
83a3c60506
@ -26,7 +26,7 @@ ACTION=="add", ENV{STARTUP}!="1", NAME="", GOTO="dm_end"
|
||||
# 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 >= ???),
|
||||
# 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}"
|
||||
|
@ -20,7 +20,7 @@ ENV{DM_UUID}!="LVM-?*", GOTO="lvm_end"
|
||||
ACTION=="add", ENV{STARTUP}!="1", GOTO="lvm_end"
|
||||
|
||||
# Use DM name and split it up into its VG/LV/layer constituents.
|
||||
IMPORT{program}="/sbin/dmsetup namesplit --nameprefixes --noheadings --rows $env{DM_NAME}"
|
||||
IMPORT{program}="/sbin/dmsetup splitname --nameprefixes --noheadings --rows $env{DM_NAME}"
|
||||
|
||||
# Do not create symlinks for hidden subdevices.
|
||||
ENV{DM_LV_NAME}=="?*_mlog", GOTO="lvm_end"
|
||||
|
Loading…
Reference in New Issue
Block a user