]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer.pm
drives: expose 'readonly' flag of qemu for scsi/virtio
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 27 Oct 2021 11:35:27 +0000 (13:35 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Oct 2021 11:53:11 +0000 (13:53 +0200)
commit12e1d472e3d8e7f301f05fd7d8fb13f424f40737
tree82f126fd2087bdba1b632351fe3b131942f888c3
parent6a5589010ea0be04bc7bdfd41fa667ab8180b35d
drives: expose 'readonly' flag of qemu for scsi/virtio

this allows a user to set a drive to 'read-only'. This can be useful
if a disk should not be written to, or if the backing file/source is
not writable (like a mapped pbs backup to /dev/loopX).

the option is named 'ro', to achieve consistency with containers

while this could also be achieved by setting 'snapshot=1', this would
create a temporary file in /var/tmp which can get quite big.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/QemuServer.pm
PVE/QemuServer/Drive.pm