Add directio to reenc test.
authorMilan Broz <gmazyland@gmail.com>
Tue, 19 Jun 2012 14:04:20 +0000 (16:04 +0200)
committerMilan Broz <gmazyland@gmail.com>
Tue, 19 Jun 2012 14:04:20 +0000 (16:04 +0200)
src/cryptsetup_reencrypt.c
tests/reencryption-compat-test

index fa6ce13..df937c1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * cryptsetup-reencrypt - crypt utility for offline re-encryption
  *
- * Copyright (C) 2012 Milan Broz All rights reserved.
+ * Copyright (C) 2012, Milan Broz All rights reserved.
  * Copyright (C) 2012, Red Hat, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or
index 48056d5..fd983e6 100755 (executable)
@@ -99,6 +99,8 @@ 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