zfstest: use truncate instead of dd
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
b13cf56109
commit
ca276fcbc2
@ -2628,7 +2628,7 @@ sub setup_zpool {
|
|||||||
|
|
||||||
unlink 'zpool.img';
|
unlink 'zpool.img';
|
||||||
eval {
|
eval {
|
||||||
run_command("dd if=/dev/zero of=zpool.img bs=1M count=8000 ");
|
run_command("truncate -s 8G zpool.img");
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
clean_up_zpool();
|
clean_up_zpool();
|
||||||
|
|||||||
Reference in New Issue
Block a user