]> sourceware.org Git - lvm2.git/commitdiff
test: fsadm-crypt.sh fixes
authorOndrej Kozina <okozina@redhat.com>
Tue, 10 Oct 2017 13:45:15 +0000 (15:45 +0200)
committerOndrej Kozina <okozina@redhat.com>
Tue, 10 Oct 2017 13:47:04 +0000 (15:47 +0200)
use conservative 'luksOpen' command instead
fix reiserfs tests on plain crypt devices

test/shell/fsadm-crypt.sh

index 7f7f3a1c1b3e49ddb8a82efc1e0a5fb9f78858bd..348b0ce9b8f1e9d5161d28efb4179b918f5d5976 100644 (file)
@@ -130,7 +130,7 @@ crypt_format() {
 # $3 name
 crypt_open() {
        local kname=
-       echo "$2" | cryptsetup open "$1" "$3"
+       echo "$2" | cryptsetup luksOpen "$1" "$3"
        test -L "$DM_DEV_DIR/mapper/$3" || {
                kname=$(get_crypt_kname $3)
                ln -s "$DM_DEV_DIR/$kname" "$3"
@@ -144,7 +144,7 @@ crypt_open() {
 # $4 header
 crypt_open_detached() {
        local kname=
-       echo "$2" | cryptsetup open --header "$4" "$1" "$3"
+       echo "$2" | cryptsetup luksOpen --header "$4" "$1" "$3"
        test -L "$DM_DEV_DIR/mapper/$3" || {
                kname=$(get_crypt_kname $3)
                ln -s "$DM_DEV_DIR/$kname" "$3"
@@ -402,8 +402,8 @@ test_reiserfs_plain() {
        not lvreduce -L-10M -r $1
        fscheck_reiserfs "$3"
 
-       fsadm --cryptresize resize $3 30M
-       fsadm --cryptresize resize $3 35M
+       fsadm -y --cryptresize resize $3 30M
+       fsadm -y --cryptresize resize $3 35M
        fscheck_reiserfs "$3"
 
        crypt_close "$4"
This page took 0.040021 seconds and 5 git commands to generate.