diff options
author | Richard Jones <rjones@redhat.com> | 2009-04-30 19:28:54 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-04-30 19:28:54 +0100 |
commit | 62df226f26bd6ac3c481a7790eb89d760d2f0386 (patch) | |
tree | 617a5a436598902b2239d67535925520c20a6e6e /python/guestfs.py | |
parent | 2a42bec2c5ee521f29179a5aab713f5a9ca2c3b8 (diff) | |
download | libguestfs-62df226f26bd6ac3c481a7790eb89d760d2f0386.tar.gz libguestfs-62df226f26bd6ac3c481a7790eb89d760d2f0386.tar.xz libguestfs-62df226f26bd6ac3c481a7790eb89d760d2f0386.zip |
Added 'zero' command to wipe partition tables and superblocks.
Diffstat (limited to 'python/guestfs.py')
-rw-r--r-- | python/guestfs.py | 11 |
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) + |