id = 1287 title = "qemu-img info foo.qcow2 tries to get write lock" state = "closed" created_at = "2022-10-28T12:34:38.214Z" closed_at = "2022-10-31T07:17:46.046Z" labels = [] url = "https://gitlab.com/qemu-project/qemu/-/issues/1287" host-os = "Arch Linux" host-arch = "x86" qemu-version = "QEMU emulator version 7.1.0" guest-os = "Fedora 36" guest-arch = "n/a" description = """When trying to run qemu-img info on an image which is used by QEMU qemu-img tries to acquire a write lock. Ideally this would not attempt to acquire a write lock and let qemu-img info succeed. ``` [jelle@t14s][/tmp]%qemu-img info /var/tmp/cockpit-qr_j3e_m.qcow2 qemu-img: Could not open '/var/tmp/cockpit-qr_j3e_m.qcow2': Failed to get shared "write" lock Is another process using the image [/var/tmp/cockpit-qr_j3e_m.qcow2]? ```""" reproduce = """1. Run qemu-img on an image used by a QEMU process.""" additional = "n/a"