blockdev_setro


Description:

[ Version ( since = "1.9.3" ) ]
public bool blockdev_setro (string device) throws Error

set block device to read-only

Sets the block device named device to read-only.

This uses the blockdev(8) command.

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error