mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
tests: devicesfile-edit.sh fix loop file name
don't remove dash from loop file name
This commit is contained in:
parent
bee575d678
commit
5c50590b22
@ -141,8 +141,8 @@ rm $DF
|
|||||||
lvmdevices --adddev "$LOOP1"
|
lvmdevices --adddev "$LOOP1"
|
||||||
lvmdevices --adddev "$LOOP2"
|
lvmdevices --adddev "$LOOP2"
|
||||||
vgcreate $vg "$LOOP1" "$LOOP2"
|
vgcreate $vg "$LOOP1" "$LOOP2"
|
||||||
IDNAME1=`pvs "$LOOP1" --noheading -o deviceid | tr -d - | awk '{print $1}'`
|
IDNAME1=`pvs "$LOOP1" --noheading -o deviceid | awk '{print $1}'`
|
||||||
IDNAME2=`pvs "$LOOP2" --noheading -o deviceid | tr -d - | awk '{print $1}'`
|
IDNAME2=`pvs "$LOOP2" --noheading -o deviceid | awk '{print $1}'`
|
||||||
lvmdevices --deldev "$IDNAME2" --deviceidtype loop_file
|
lvmdevices --deldev "$IDNAME2" --deviceidtype loop_file
|
||||||
not grep "$IDNAME2" $DF
|
not grep "$IDNAME2" $DF
|
||||||
not grep "$LOOP2" $DF
|
not grep "$LOOP2" $DF
|
||||||
|
Loading…
Reference in New Issue
Block a user