mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Add support for non /dev devices
Since test suite is not using /dev - add support for such dirs into fsadm.
This commit is contained in:
parent
4026cb6fd1
commit
13e3c25ade
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.89 -
|
Version 2.02.89 -
|
||||||
==================================
|
==================================
|
||||||
|
Add support for non /dev device paths into fsadm script.
|
||||||
Support different PATH setting for fsadm script testing.
|
Support different PATH setting for fsadm script testing.
|
||||||
Surround all executed commands with quotes in fsadm script.
|
Surround all executed commands with quotes in fsadm script.
|
||||||
Fix missing '$' in test for content of "$LVM" in fsadm script.
|
Fix missing '$' in test for content of "$LVM" in fsadm script.
|
||||||
|
@ -177,7 +177,7 @@ decode_size() {
|
|||||||
detect_fs() {
|
detect_fs() {
|
||||||
VOLUME_ORIG=$1
|
VOLUME_ORIG=$1
|
||||||
VOLUME=${1#/dev/}
|
VOLUME=${1#/dev/}
|
||||||
VOLUME=$("$READLINK" $READLINK_E "/dev/$VOLUME") || error "Cannot get readlink $1"
|
VOLUME=$("$READLINK" $READLINK_E "/dev/$VOLUME") || VOLUME=$("$READLINK" $READLINK_E "$VOLUME_ORIG") || error "Cannot get readlink \"$1\""
|
||||||
RVOLUME=$VOLUME
|
RVOLUME=$VOLUME
|
||||||
case "$RVOLUME" in
|
case "$RVOLUME" in
|
||||||
/dev/dm-[0-9]*)
|
/dev/dm-[0-9]*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user