Laszlo Ersek
2023-May-19 14:08 UTC
[Libguestfs] [libguestfs PATCH 3/3] LUKS-on-LVM inspection test: test /dev/mapper/VG-LV translation
In the LUKS-on-LVM inspection test, call the "check_filesystems" function yet another time, now with such "--key" options that exercise the recent "/dev/mapper/VG-LV" -> "/dev/VG/LV" translation (unescaping) from libguestfs-common. Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2168506 Signed-off-by: Laszlo Ersek <lersek at redhat.com> --- tests/luks/test-key-option-inspect-luks-on-lvm.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/luks/test-key-option-inspect-luks-on-lvm.sh b/tests/luks/test-key-option-inspect-luks-on-lvm.sh index a8d72b9f9463..932862b17d4a 100755 --- a/tests/luks/test-key-option-inspect-luks-on-lvm.sh +++ b/tests/luks/test-key-option-inspect-luks-on-lvm.sh @@ -101,3 +101,21 @@ eval "$fish_ref" # Repeat the test. check_filesystems + +# Exit the current guestfish background process. +guestfish --remote -- exit +GUESTFISH_PID+ +# Start up another guestfish background process, and specify the keys in +# /dev/mapper/VG-LV format this time. +keys_by_mapper_lvname=( + --key /dev/mapper/Volume--Group-Root:key:FEDORA-Root + --key /dev/mapper/Volume--Group-Logical--Volume--1:key:FEDORA-LV1 + --key /dev/mapper/Volume--Group-Logical--Volume--2:key:FEDORA-LV2 + --key /dev/mapper/Volume--Group-Logical--Volume--3:key:FEDORA-LV3 +) +fish_ref=$("${guestfish[@]}" "${keys_by_mapper_lvname[@]}") +eval "$fish_ref" + +# Repeat the test. +check_filesystems
Richard W.M. Jones
2023-May-19 16:28 UTC
[Libguestfs] [libguestfs PATCH 3/3] LUKS-on-LVM inspection test: test /dev/mapper/VG-LV translation
On Fri, May 19, 2023 at 04:08:49PM +0200, Laszlo Ersek wrote:> In the LUKS-on-LVM inspection test, call the "check_filesystems" function > yet another time, now with such "--key" options that exercise the recent > "/dev/mapper/VG-LV" -> "/dev/VG/LV" translation (unescaping) from > libguestfs-common. > > Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2168506 > Signed-off-by: Laszlo Ersek <lersek at redhat.com> > --- > tests/luks/test-key-option-inspect-luks-on-lvm.sh | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/tests/luks/test-key-option-inspect-luks-on-lvm.sh b/tests/luks/test-key-option-inspect-luks-on-lvm.sh > index a8d72b9f9463..932862b17d4a 100755 > --- a/tests/luks/test-key-option-inspect-luks-on-lvm.sh > +++ b/tests/luks/test-key-option-inspect-luks-on-lvm.sh > @@ -101,3 +101,21 @@ eval "$fish_ref" > > # Repeat the test. > check_filesystems > + > +# Exit the current guestfish background process. > +guestfish --remote -- exit > +GUESTFISH_PID> + > +# Start up another guestfish background process, and specify the keys in > +# /dev/mapper/VG-LV format this time. > +keys_by_mapper_lvname=( > + --key /dev/mapper/Volume--Group-Root:key:FEDORA-Root > + --key /dev/mapper/Volume--Group-Logical--Volume--1:key:FEDORA-LV1 > + --key /dev/mapper/Volume--Group-Logical--Volume--2:key:FEDORA-LV2 > + --key /dev/mapper/Volume--Group-Logical--Volume--3:key:FEDORA-LV3 > +) > +fish_ref=$("${guestfish[@]}" "${keys_by_mapper_lvname[@]}") > +eval "$fish_ref" > + > +# Repeat the test. > +check_filesystemsFor the series: Reviewed-by: Richard W.M. Jones <rjones at redhat.com> Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Maybe Matching Threads
- [libguestfs PATCH 0/3] test "/dev/mapper/VG-LV" with "--key"
- [guestfs-tools PATCH 3/3] inspector: test /dev/mapper/VG-LV translation in LUKS-on-LVM test
- [guestfs-tools PATCH 3/3] inspector: test /dev/mapper/VG-LV translation in LUKS-on-LVM test
- [guestfs-tools PATCH 0/3] test "/dev/mapper/VG-LV" with "--key"
- [PATCH] file: Fix file command on /dev/VG/LV paths (RHBZ#582484).