From 6e64e946338d0559751984cdbc9b3dde0c085811 Mon Sep 17 00:00:00 2001
From: Thiemo Nagel <thiemo.nagel@gmail.com>
Date: Mon, 16 Sep 2013 19:44:33 +0200
Subject: [PATCH] blockdev-wipe: Set blocksize to 512k

This should be large enough to avoid excessive system call
overhead and small enough to prevent problems on systems with
very little RAM.
---
 lib/crypto-base.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/crypto-base.sh b/lib/crypto-base.sh
index 45ee82c..d8284f1 100644
--- a/lib/crypto-base.sh
+++ b/lib/crypto-base.sh
@@ -287,7 +287,7 @@ crypto_do_wipe () {
 	fifo=/var/run/wipe_progress
 
 	mknod $fifo p
-	/bin/blockdev-wipe -s 65536 $dev > $fifo &
+	/bin/blockdev-wipe -s $((512*1024)) $dev > $fifo &
 	pid=$!
 
 	cancelled=0
-- 
1.7.10.4

