[ 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.
this |
A GuestfsSession object |
the returned value, or -1 on error |