qemu-img has broken output with large snapshot names
Bug #1859989 reported by
pevogam
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
On Qemu 4.1.1 the output of snapshots breaks if the chosen state name is too long:
```
# qemu-img snapshot -l /mnt/local/
Snapshot list:
ID TAG VM SIZE DATE VM CLOCK
1 online_
```
Prior to 4.1.1 this used to work with extra tabs for the VM SIZE values. The collision is also disabling us from using a regex on top of this output to detect the snapshot.
summary: |
- qemu-img has broken input on large snapshot name + qemu-img has broken output on large snapshot name |
summary: |
- qemu-img has broken output on large snapshot name + qemu-img has broken output with large snapshot names |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in qemu: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi,
When did this work last for you? I tried every .0 release down to 2.12.0, and all showed this kind of broken output. (I wasn’t able to compile 2.11.0 and earlier.)
Here was my test case:
$ ./qemu-img create -f qcow2 foo.qcow2 64M foofoofoofoofoo foo.qcow2 foofoofoofoofoo 0 2020-01-17 10:53:17 00:00:00.000
Formatting 'foo.qcow2', fmt=qcow2 size=67108864 cluster_size=65536 lazy_refcounts=off refcount_bits=16
$ ./qemu-img snapshot -c foofoofoofoofoo
$ ./qemu-img snapshot -l foo.qcow2
Snapshot list:
ID TAG VM SIZE DATE VM CLOCK
1 foofoofoofoofoo
$ ./qemu-img --version
qemu-img version 2.12.0 (v2.12.0)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
Max