add_drive_scratch


Description:

[ Version ( since = "1.23.10" ) ]
public bool add_drive_scratch (int64 size, AddDriveScratch? optargs) throws Error

add a temporary scratch drive

This command adds a temporary scratch drive to the handle. The size parameter is the virtual size (in bytes). The scratch drive is blank initially (all reads return zeroes until you start writing to it). The drive is deleted when the handle is closed.

The optional arguments name and label are passed through to add_drive.

Parameters:

this

A GuestfsSession object

optargs

a GuestfsAddDriveScratch containing optional arguments

Returns:

true on success, false on error