summaryrefslogtreecommitdiffstats
path: root/python/guestfs.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/guestfs.py')
-rw-r--r--python/guestfs.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/python/guestfs.py b/python/guestfs.py
index 37dce2bf..3cfc86a1 100644
--- a/python/guestfs.py
+++ b/python/guestfs.py
@@ -1163,3 +1163,14 @@ class GuestFS:
"""
return libguestfsmod.fsck (self._o, fstype, device)
+ def zero (self, device):
+ u"""This command writes zeroes over the first few blocks of
+ "device".
+
+ How many blocks are zeroed isn't specified (but it's
+ *not* enough to securely wipe the device). It should be
+ sufficient to remove any partition tables, filesystem
+ superblocks and so on.
+ """
+ return libguestfsmod.zero (self._o, device)
+