[ Version ( since = "1.0.16" ) ]
public bool zero (string device) throws Error
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
this |
A GuestfsSession object |
true on success, false on error |