[pve-devel] [PATCH storage 05/11] zfstest: use truncate instead of dd

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed May 17 11:42:32 CEST 2017


Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 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();
-- 
2.1.4





More information about the pve-devel mailing list