2 # Copyright (C) 2008 Red Hat, Inc. All rights reserved.
4 # This copyrighted material is made available to anyone wishing to use,
5 # modify, copy, or redistribute it subject to the terms and conditions
6 # of the GNU General Public License v.2.
8 # You should have received a copy of the GNU General Public License
9 # along with this program; if not, write to the Free Software Foundation,
10 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
12 # 'Test for proper escaping of strings in metadata (bz431474)'
18 pv_ugly
="__\"!@#\$%^&*,()|@||'\\\"__pv1"
20 # 'set up temp files, loopback devices'
21 name
=$
(basename "$dev1")
22 dmsetup rename
"$name" "$PREFIX$pv_ugly"
23 dev1
=$
(dirname "$dev1")/$PREFIX$pv_ugly
25 # 'pvcreate, vgcreate on filename with backslashed chars'
29 # 'no parse errors and VG really exists'
31 not
grep "Parse error" err
;