2
# Copyright (C) 2012 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
13
test -e LOCAL_LVMETAD || skip
16
vgcreate $vg1 $dev1 $dev2
17
lvcreate -n bar -l 1 $vg1
20
if type -p socat >& /dev/null; then
21
socat "unix-connect:$1" -
22
elif echo | nc -U "$1"; then
25
echo "WARNING: Neither socat nor nc -U seems to be available." 1>&2
32
(echo 'request="dump"'; echo '##') | lvmetad_talk "$@"
35
(echo | lvmetad_talk ./lvmetad.socket) || skip
36
lvmetad_dump ./lvmetad.socket | tee lvmetad.txt