file reports negative size for QCOW images
Bug #198232 reported by
Adam Buchbinder
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
file (Debian) |
Fix Released
|
Unknown
|
|||
file (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: file
To reproduce:
$ qemu-img create -f qcow test.qcow 2G
Formatting 'test.qcow', fmt=qcow, size=2097152 kB
$ file test.qcow
test.qcow: QEMU Copy-On-Write disk image version 1, size 0 + -2147483648
The size is a 64-bit number (described in the spec http://
I am running file 4.21-1 on Ubuntu Gutsy.
Changed in file: | |
status: | Unknown → New |
Changed in file (Debian): | |
status: | New → Fix Released |
Changed in file (Ubuntu): | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
This seems to have gotten worse. The output is now:
test.qcow: Qemu Image, Format: Qcow , Version: 1 , Disk Size could be: 0 * 256 bytes
The number reported for disk size does not vary with the actual size of the image. qcow2-format images don't have any estimated size reported at all.
This is file 4.23-2 downloaded from the Intrepid repository and running on Gutsy. (I manually specified the just-built magic file.)