summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sparsify/sparsify.ml8
1 files changed, 3 insertions, 5 deletions
diff --git a/sparsify/sparsify.ml b/sparsify/sparsify.ml
index fe12490d..501540c6 100644
--- a/sparsify/sparsify.ml
+++ b/sparsify/sparsify.ml
@@ -231,11 +231,9 @@ let () =
if not quiet then
printf "Fill free space in volgroup %s with zero ...\n%!" vg;
- (* This command is expected to fail. *)
- (try g#dd "/dev/zero" lvdev with _ -> ());
-
- g#sync ();
- g#lvremove lvdev
+ g#zero_device lvdev;
+ g#sync ();
+ g#lvremove lvdev
)
)
) vgs