blockdev_getro


Description:

[ Version ( since = "1.9.3" ) ]
public int8 blockdev_getro (string device) throws Error

is block device set to read-only

Returns a boolean indicating if the block device is read-only (true if read-only, false if not).

This uses the blockdev(8) command.

Parameters:

this

A GuestfsSession object

Returns:

the returned value, or -1 on error