1
0
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:
Zdenek Kabelac 2011-09-19 14:52:33 +00:00
parent 4026cb6fd1
commit 13e3c25ade
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -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]*)