diff options
author | David Teigland <teigland@redhat.com> | 2019-07-30 15:59:11 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2019-07-30 16:12:45 -0500 |
commit | a178ad0858a9fa3fbef97b3fa5148ab432b61422 (patch) | |
tree | 843bb70ce2af5e19dbeb058682ec2a4a85cca6c1 | |
parent | 7550665ba49ac7d497d5b212e14b69298ef01361 (diff) | |
download | lvm2-a178ad0858a9fa3fbef97b3fa5148ab432b61422.tar.gz |
tests: large-physical-sector-size
-rw-r--r-- | test/shell/large-physical-sector-size.sh | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/shell/large-physical-sector-size.sh b/test/shell/large-physical-sector-size.sh new file mode 100644 index 000000000..891f40962 --- /dev/null +++ b/test/shell/large-physical-sector-size.sh @@ -0,0 +1,43 @@ +#!/usr/bin/env bash + +# Copyright (C) 2019 Red Hat, Inc. All rights reserved. +# +# This copyrighted material is made available to anyone wishing to use, +# modify, copy, or redistribute it subject to the terms and conditions +# of the GNU General Public License v.2. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +SKIP_WITH_LVMPOLLD=1 + +. lib/inittest + +LOGICAL_BLOCK_SIZE=4096 + +# PHYSICAL_BLOCK_SIZE is set with physblk_exp which +# shifts the logical block size value. + +# 4096 << 9 = 2MB physical block size +PHYSICAL_BLOCK_SHIFT=9 + +aux prepare_scsi_debug_dev 256 sector_size=$LOGICAL_BLOCK_SIZE physblk_exp=$PHYSICAL_BLOCK_SHIFT + +check sysfs "$(< SCSI_DEBUG_DEV)" queue/logical_block_size "$LOGICAL_BLOCK_SIZE" + +aux prepare_pvs 1 256 + +get_devs + +vgcreate $SHARED $vg "$dev1" + +for i in `seq 1 40`; do lvcreate -an -l1 $vg; done; + +lvs $vg + +lvremove -y $vg + +vgremove $vg + +aux cleanup_scsi_debug_dev |