zero
Description:
write zeroes to the device
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.
If blocks are already zero, then this command avoids writing zeroes. This prevents the underlying device from becoming non-sparse or growing unnecessarily.
See also: zero_device, scrub_device, is_zero_device
Parameters:
this |
A GuestfsSession object |
Returns:
true on success, false on error |