5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2025-02-10 13:57:38 +03:00

zfstest: use truncate instead of dd

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2017-05-17 11:42:32 +02:00 committed by Wolfgang Bumiller
parent b13cf56109
commit ca276fcbc2

View File

@ -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();