[pve-devel] applied: [PATCH qemu-server v3] drives: expose 'readonly' flag of qemu for scsi/virtio

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Oct 27 17:01:19 CEST 2021


On 27/10/2021 13:35, Dominik Csapak wrote:
> 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 at proxmox.com>
> ---
> changes from v2:
> * renamed option to 'ro' to be in line with containers
> 
>  PVE/QemuServer.pm       |  6 ++++++
>  PVE/QemuServer/Drive.pm | 11 +++++++++++
>  2 files changed, 17 insertions(+)
> 
>

applied, thanks!





More information about the pve-devel mailing list