17
aux lvmconf 'devices/global_filter = [ "a|.*LVMTEST.*dev/mapper/.*pv[0-9_]*$|", "r|.*|" ]'
18
19
# for udev impossible to create
19
20
pv_ugly="__\"!@#\$%^&*,()|@||'\\\"__pv1"
21
# 'set up temp files, loopback devices'
22
# 'set up temp files, loopback devices'
22
23
name=$(basename "$dev1")
23
24
dmsetup rename "$name" "$PREFIX$pv_ugly"
24
dev1=$(dirname "$dev1")/$PREFIX$pv_ugly
26
dmsetup table | grep -F "$pv_ugly"
28
# 'pvcreate, vgcreate on filename with backslashed chars'
25
dev1=$(dirname "$dev1")/"$PREFIX$pv_ugly"
27
dm_table | grep -F "$pv_ugly"
29
# 'pvcreate, vgcreate on filename with backslashed chars'
30
31
# when used with real udev without fallback, it will fail here
31
pvcreate "$dev1" || created=$dev2
32
pvcreate "$dev1" || created="$dev2"
32
33
pvdisplay | should grep -F "$pv_ugly"
33
34
should check pv_field "$dev1" pv_name "$dev1"
34
35
vgcreate $vg "$created"
35
# 'no parse errors and VG really exists'
37
not grep "Parse error" err;
36
# 'no parse errors and VG really exists'
38
not grep "Parse error" err