[ 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, label and blocksize are passed through to
guestfs_session_add_drive_opts.
| this |
A GuestfsSession object |
| optargs |
a GuestfsAddDriveScratch containing optional arguments |
|
true on success, false on error |