From ca276fcbc28f983ec5fadf8f19509a989335b211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 17 May 2017 11:42:32 +0200 Subject: [PATCH] zfstest: use truncate instead of dd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler --- test/run_test_zfspoolplugin.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/run_test_zfspoolplugin.pl b/test/run_test_zfspoolplugin.pl index 4a01bf7..63b2e5a 100755 --- a/test/run_test_zfspoolplugin.pl +++ b/test/run_test_zfspoolplugin.pl @@ -2628,7 +2628,7 @@ sub setup_zpool { unlink 'zpool.img'; eval { - run_command("dd if=/dev/zero of=zpool.img bs=1M count=8000 "); + run_command("truncate -s 8G zpool.img"); }; if ($@) { clean_up_zpool();