Initial import of binutils 2.22 on the new vendor branch
[dragonfly.git] / contrib / lvm2 / dist / test / t-fsadm.sh
1 #!/bin/bash
2 # Copyright (C) 2008 Red Hat, Inc. All rights reserved.
3 #
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.
7 #
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
11
12 . ./test-utils.sh
13
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
19
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