xref: /dragonfly/contrib/lvm2/dist/test/t-fsadm.sh (revision 8af44722)
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
14exit 200
15# doesn't work right now
16aux prepare_pvs 2
17aux pvcreate --metadatacopies 0 $dev1
18vgcreate -cn $vg $devs
19
20# Test for block sizes != 1024 (rhbz #480022)
21lvcreate -n$lv1 -L 64M $vg
22mke2fs -b4096 -j $G_dev_/$vg/$lv1
23e2fsck -f -y $G_dev_/$vg/$lv1
24fsadm --lvresize resize $G_dev_/$vg/$lv1 128M
25vgremove -ff $vg
26