add_drive_ro


Description:

[ Version ( since = "1.0.38" ) ]
public bool add_drive_ro (string filename) throws Error

add a drive in snapshot mode (read-only)

This function is the equivalent of calling guestfs_session_add_drive_opts with the optional parameter GUESTFS_ADD_DRIVE_OPTS_READONLY set to 1, so the disk is added read-only, with the format being detected automatically.

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error




2022 vala-language.org