1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-23 21:35:29 +03:00

Add some more special chars for device name test.

This commit is contained in:
Milan Broz 2009-03-31 17:30:47 +00:00
parent 77dd12a028
commit 6faaa1a0cc

View File

@ -15,12 +15,12 @@
aux prepare_devs 1
pv_suffix="__\"!@#\$%^&*()'\\\"__"
pv_ugly="__\"!@#\$%^&*,()|@||'\\\"__pv1"
# 'set up temp files, loopback devices'
name=$(basename "$dev1")
dmsetup rename "$name" "$name$pv_suffix"
dev1=$(dirname "$dev1")/$name$pv_suffix
dmsetup rename "$name" "$PREFIX$pv_ugly"
dev1=$(dirname "$dev1")/$PREFIX$pv_ugly
# 'pvcreate, vgcreate on filename with backslashed chars'
pvcreate "$dev1"