zero


Description:

[ 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

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error




2022 vala-language.org