On 11/20/2014 05:44 AM, Max Reitz wrote:
Add an option to qmp_change_blockdev() which allows changing the
read-only status of the block device to be changed.
Some drives do not have a inherently fixed read-only status; for
instance, floppy disks can be set read-only or writable independently
On 2014-11-26 at 17:24, Eric Blake wrote:
On 11/20/2014 05:44 AM, Max Reitz wrote:
Add an option to qmp_change_blockdev() which allows changing the
read-only status of the block device to be changed.
Some drives do not have a inherently fixed read-only status; for
instance, floppy disks can be
On 11/26/2014 09:36 AM, Max Reitz wrote:
-qmp_bdrv_open_encrypted(bs, filename, bdrv_flags, drv, NULL,
errp);
+qmp_bdrv_open_encrypted(bs, filename, bdrv_flags, drv, NULL, err);
+
+if (err) {
+if (read_only == BLOCKDEV_CHANGE_READ_ONLY_MODE_AUTO) {
+
Add an option to qmp_change_blockdev() which allows changing the
read-only status of the block device to be changed.
Some drives do not have a inherently fixed read-only status; for
instance, floppy disks can be set read-only or writable independently of
the drive. Some users may find it useful