X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2Freencryption-compat-test;h=3169d8cad877dc95dc2b7fe0c1f9e6d605a52481;hb=0bd8b9823a8077d4ee6f207d3d23fcbe52a3be74;hp=48056d517ea783db12afb09e44fe412d13b46d0a;hpb=b773823a1b8387d7ab93733719951c54cc575f1c;p=platform%2Fupstream%2Fcryptsetup.git diff --git a/tests/reencryption-compat-test b/tests/reencryption-compat-test index 48056d5..3169d8c 100755 --- a/tests/reencryption-compat-test +++ b/tests/reencryption-compat-test @@ -99,11 +99,13 @@ echo "key0" | $REENC $LOOPDEV1 -q -s 256 check_hash "key0" $HASH1 echo "key0" | $REENC $LOOPDEV1 -q -s 256 -c aes-xts-plain64 -h sha256 check_hash "key0" $HASH1 +echo "key0" | $REENC $LOOPDEV1 -q --use-directio +check_hash "key0" $HASH1 echo "[2] Reencryption with data shift" echo "key0" | $CRYPTSETUP -q luksFormat -s 128 -i 1 --align-payload 2048 $LOOPDEV1 || fail wipe "key0" -echo "key0" | $REENC $LOOPDEV1 -q -s 256 --reduce-device-size 1024 || fail +echo "key0" | $REENC $LOOPDEV1 -q -s 256 --reduce-device-size 1024S || fail check_hash "key0" $HASH2 echo "key0" | $REENC $LOOPDEV1 -q -i 1 || fail check_hash "key0" $HASH2 @@ -125,7 +127,7 @@ wipe_dev $LOOPDEV1 dmsetup create $DEV_NAME2 --table "0 $(($SIZE - $OFFSET)) linear $LOOPDEV1 0" || fail check_hash_dev /dev/mapper/$DEV_NAME2 $HASH3 dmsetup remove $DEV_NAME2 || fail -echo "key0" | $REENC $LOOPDEV1 -s 128 --new --reduce-device-size $OFFSET -q +echo "key0" | $REENC $LOOPDEV1 -s 128 --new --reduce-device-size "$OFFSET"S -q check_hash "key0" $HASH3 remove_mapping