2
# Copyright (C) 2011 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
14
# use small default size - 512KB
15
aux lvmconf 'devices/pv_min_size = 512'
19
check pv_field $dev1 pv_name $dev1
21
# increase min size beyond created PV size 10MB
22
aux lvmconf 'devices/pv_min_size = 10240'
24
# and test device is not visible
25
not check pv_field $dev1 pv_name $dev1
27
# set too low value errornous value
28
aux lvmconf 'devices/pv_min_size = -100'
30
# check the incorrect value is printed
31
pvs $dev1 2>&1 | grep -- -100