Sync usage with man page.
[netbsd-mini2440.git] / external / gpl2 / lvm2 / dist / test / t-fsadm.sh
blob421ec6b915dd5905615bc72e6606e5f8bf1c9dc4
1 #!/bin/bash
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-utils.sh
14 exit 200
15 # doesn't work right now
16 aux prepare_pvs 2
17 aux pvcreate --metadatacopies 0 $dev1
18 vgcreate -cn $vg $devs
20 # Test for block sizes != 1024 (rhbz #480022)
21 lvcreate -n$lv1 -L 64M $vg
22 mke2fs -b4096 -j $G_dev_/$vg/$lv1
23 e2fsck -f -y $G_dev_/$vg/$lv1
24 fsadm --lvresize resize $G_dev_/$vg/$lv1 128M
25 vgremove -ff $vg