Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=e3c8cebd87f9bd7591529…
Commit: e3c8cebd87f9bd7591529f3d65783cc6f1fd3f92
Parent: 2f846697fcb16b2e0954a051577bd47c8cf6721c
Author: Heinz Mauelshagen <heinzm(a)redhat.com>
AuthorDate: Mon Jul 8 19:07:18 2019 +0200
Committer: Heinz Mauelshagen <heinzm(a)redhat.com>
CommitterDate: Mon Jul 8 19:14:11 2019 +0200
lvconvert: allow --stripes/--stripesize in 'mirror' conversions
This allows the creation of a striped mirror leg(s) during upconvert
by adding lvconvert command line options --stripes/--stripesize
for 'mirror' to tools/command-lines.in.
In case multiple mirror legs are being added, all will have the
same requested striped layout.
Resolves: rhbz1720705
---
tools/command-lines.in | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/tools/command-lines.in b/tools/command-lines.in
index a8c06ba..b4a9896 100644
--- a/tools/command-lines.in
+++ b/tools/command-lines.in
@@ -334,13 +334,11 @@ DESC: Convert LV to striped.
RULE: all not lv_is_locked lv_is_pvmove
lvconvert --type mirror LV
-OO: --mirrors SNumber, --regionsize RegionSize, --interval Number, --mirrorlog MirrorLog, OO_LVCONVERT
+OO: --mirrors SNumber, --stripes_long Number, --stripesize SizeKB, --regionsize RegionSize, --interval Number, --mirrorlog MirrorLog, OO_LVCONVERT
OP: PV ...
ID: lvconvert_raid_types
DESC: Convert LV to type mirror (also see type raid1),
-DESC: (also see lvconvert --mirrors).
RULE: all not lv_is_locked lv_is_pvmove
-FLAGS: SECONDARY_SYNTAX
# When LV is already raid, this changes the raid layout
# (changing layout of raid0 and raid1 not allowed.)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=1e9c409a3eef3c18f97b7…
Commit: 1e9c409a3eef3c18f97b70a3d679ea24a2458886
Parent: e1cc409ae6808cd00b908756b53a4d58338aa5f7
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Fri May 3 13:11:09 2019 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Sat Jul 6 01:24:28 2019 +0200
tests: use luks1 for test
Since we do not need anywhere luks2 - pick older format
which does not require password for resize to keep
the rest of test unmodified.
---
test/shell/fsadm-crypt.sh | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/test/shell/fsadm-crypt.sh b/test/shell/fsadm-crypt.sh
index d90413d..9c85edf 100644
--- a/test/shell/fsadm-crypt.sh
+++ b/test/shell/fsadm-crypt.sh
@@ -46,7 +46,14 @@ PWD2="mymJeD8ivEhE"
PWD3="ocMakf3fAcQO"
SKIP_DETACHED=
-which cryptsetup || check_cryptsetup=${check_cryptsetup:-cryptsetup}
+if which cryptsetup ; then
+ # use older format luks1 - otherwise the test would need to pass password everywhere...
+ case $(cryptsetup --version) in
+ "cryptsetup 2"*) FORMAT_PARAMS="$FORMAT_PARAMS --type luks1" ;;
+ esac
+else
+ check_cryptsetup=${check_cryptsetup:-cryptsetup}
+fi
which mkfs.ext2 || check_ext2=${check_ext2:-mkfs.ext2}
which mkfs.ext3 || check_ext3=${check_ext3:-mkfs.ext3}