Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:Update
device-mapper.18094
bug-1149408_02-tests-allow-mixed-block-sizes.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bug-1149408_02-tests-allow-mixed-block-sizes.patch of Package device-mapper.18094
From f758d16b30afd1848ea874b5ebd20185c5300320 Mon Sep 17 00:00:00 2001 From: David Teigland <teigland@redhat.com> Date: Thu, 1 Aug 2019 10:13:41 -0500 Subject: [PATCH] tests: allow-mixed-block-sizes (cherry picked from commit cd8a0133fa28a0dff2714c80f822e8c665fe6237) --- test/shell/allow-mixed-block-sizes.sh | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 test/shell/allow-mixed-block-sizes.sh diff --git a/test/shell/allow-mixed-block-sizes.sh b/test/shell/allow-mixed-block-sizes.sh new file mode 100644 index 0000000..1803256 --- /dev/null +++ b/test/shell/allow-mixed-block-sizes.sh @@ -0,0 +1,44 @@ +#!/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 + +dd if=/dev/zero of=loopa bs=$((1024*1024)) count=2 2> /dev/null +dd if=/dev/zero of=loopb bs=$((1024*1024)) count=2 2> /dev/null +LOOP1=$(losetup -f loopa --sector-size 4096 --show) +LOOP2=$(losetup -f loopb --show) + +echo $LOOP1 +echo $LOOP2 + +aux extend_filter "a|$LOOP1|" +aux extend_filter "a|$LOOP2|" + +not vgcreate --config 'devices {allow_mixed_block_sizes=0 scan="/dev"}' $vg $LOOP1 $LOOP2 +vgcreate --config 'devices {allow_mixed_block_sizes=1 scan="/dev"}' $vg $LOOP1 $LOOP2 +vgs --config 'devices {allow_mixed_block_sizes=1 scan="/dev"}' $vg + +wipefs -a $LOOP1 +wipefs -a $LOOP2 + +vgcreate --config 'devices {allow_mixed_block_sizes=1 scan="/dev"}' $vg $LOOP1 +vgs --config 'devices {allow_mixed_block_sizes=1 scan="/dev"}' $vg +not vgextend --config 'devices {allow_mixed_block_sizes=0 scan="/dev"}' $vg $LOOP2 +vgextend --config 'devices {allow_mixed_block_sizes=1 scan="/dev"}' $vg $LOOP2 + +losetup -d $LOOP1 +losetup -d $LOOP2 +rm loopa +rm loopb + -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor