summary refs log tree commit diff stats
path: root/results/scraper/launchpad-without-comments/1721788
blob: 63fecba7fe68e7a10f6963be14dbfa955c5a91e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Failed to get shared "write" lock with 'qemu-img info'

When running 'qemu-img info test.qcow2' while test.qcow2 is currently used by a Qemu process, I get the error

qemu-img: Could not open 'test.qcow2': Failed to get shared "write" lock.


Why does displaying information about a disk image need a write lock for the file?

Steps to reproduce:

qemu-img create -f qcow2 test.qcow2 10M
qemu-system-x86_64 -nographic -drive file=test.qcow2
qemu-img info test.qcow2

The above was tested with Qemu version 2.10.0