Skip to content

qemu-img snapshot -l output formatting is broken (field to small / whitespace missing)

Host environment

  • Operating system: Debian 12 Bookworm
  • OS/kernel version: pve-manager/8.1.3/b46aac3b42da5d15 (running kernel: 6.5.11-7-pve)
  • Architecture: x86_64
  • QEMU flavor: qemu-img from proxmox 8.1
  • QEMU version: qemu-img version 8.1.2 (pve-qemu-kvm_8.1.2-6)
  • QEMU command line:

qemu-img snapshot -l vm-104-disk-0.qcow2

Snapshot list:

ID TAG VM SIZE DATE VM CLOCK ICOUNT

1 vor_debian_upgrade 0 B 2023-09-26 17:18:221777:38:02.207

Description of problem:

when listing a snapshot, qemu-img does not correctly format output, as you can see between DATE and VM CLOCK , there is no whitespace between the numbers. i found no way to add formatting option for correct output.

furthermore, using whitespace in column headers does make it hard to read/decide if "VM SIZE" or "VM CLOCK" are tags or "VM" is different column, especially when output is not formatted according to header.

what about adding "VM_SIZE" and "VM_CLOCK" and "n/a" when there is no output (ICOUNT) ?

Edited by Roland Kletzing
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information