zero_device


Description:

[ Version ( since = "1.3.1" ) ]
public bool zero_device (string device) throws Error

write zeroes to an entire device

This command writes zeroes over the entire device. Compare with zero which just zeroes the first few blocks of a device.

If blocks are already zero, then this command avoids writing zeroes. This prevents the underlying device from becoming non-sparse or growing unnecessarily.

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error