Shrinking a disk accidentally equals data loss and thus very bad time
for anyone mis-typing.

This series adds a new flag to virDomainBlockResize to prevent such a
thing if the user only intends to extend the disk.

In virsh I've went a bit further and actually change the behaviour of
'virsh blockresize' to use the new feature if available to prevent
mishaps.

Peter Krempa (6):
  virDomainBlockResizeFlags: Convert to prefix-style docs
  API/qemu: Introduce 'VIR_DOMAIN_BLOCK_RESIZE_EXTEND' for
    'virDomainBlockResize'
  virsh: blockresize: Introduce '--extend' flag
  API: Introduce 'VIR_DOMAIN_BLOCK_RESIZE_PROBE_FLAGS' for
    'virDomainBlockResize'
  virsh/virt-admin: Add possibility to probe for new arguments
  virsh: blockresize: Use VIR_DOMAIN_BLOCK_RESIZE_EXTEND when available
    and introduce --allow-shrink

 docs/manpages/virsh.rst          | 31 +++++++++++++++++++++++++-
 include/libvirt/libvirt-domain.h | 19 ++++++++++++++--
 src/libvirt-domain.c             | 17 +++++++++++++++
 src/qemu/qemu_driver.c           | 37 +++++++++++++++++++++++++++++++-
 src/vz/vz_driver.c               |  7 +++++-
 tools/virsh-domain.c             | 23 ++++++++++++++++++++
 tools/virsh.c                    |  4 ++++
 tools/virt-admin.c               |  9 ++++++++
 tools/vsh.c                      |  3 +++
 tools/vsh.h                      |  1 +
 10 files changed, 146 insertions(+), 5 deletions(-)

-- 
2.53.0

Reply via email to