summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/118/none/1819182
blob: d18710af927ef18c93d09f76d19aa6b1a62314a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
peripherals: 0.570
virtual: 0.551
hypervisor: 0.544
register: 0.525
device: 0.517
ppc: 0.504
semantic: 0.495
assembly: 0.487
graphic: 0.476
permissions: 0.468
vnc: 0.468
user-level: 0.455
debug: 0.443
arm: 0.443
KVM: 0.443
TCG: 0.416
PID: 0.412
architecture: 0.411
mistranslation: 0.383
performance: 0.377
VMM: 0.373
risc-v: 0.372
files: 0.369
kernel: 0.362
boot: 0.345
x86: 0.316
i386: 0.312
socket: 0.270
network: 0.255

info does not recognize file format of vpc with subformat=fixed

After creating or converting an image to vpc with 'subformat=fixed'
'qemu-img info' incorrectly identifies the image as 'raw' format.

$ qemu-img --version
qemu-img version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.10)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

$ qemu-img create -f vpc -o subformat=fixed my.vpc 2G
Formatting 'my.vpc', fmt=vpc size=2147483648 subformat=fixed

$ qemu-img info my.vpc
image: my.vpc
file format: raw
virtual size: 2.0G (2147992064 bytes)
disk size: 4.0K

$ qemu-img info -f vpc my.vpc
image: my.vpc
file format: vpc
virtual size: 2.0G (2147991552 bytes)
disk size: 4.0K

$ ./go-create
#version: 2.11.1                                                                
qcow: PASS fmt=qcow auto=qcow exp=qcow [name=my-img.qcow opts=]                 
qcow2: PASS fmt=qcow2 auto=qcow2 exp=qcow2 [name=my-img.qcow2 opts=]            
qed: PASS fmt=qed auto=qed exp=qed [name=my-img.qed opts=]                      
raw: PASS fmt=raw auto=raw exp=raw [name=my-img.raw opts=]                      
vdi: PASS fmt=vdi auto=vdi exp=vdi [name=my-img.vdi opts=]                      
vhdx: PASS fmt=vhdx auto=vhdx exp=vhdx [name=my-img.vhdx opts=]                 
vmdk: PASS fmt=vmdk auto=vmdk exp=vmdk [name=my-img.vmdk opts=]                 
vpc: PASS fmt=vpc auto=vpc exp=vpc [name=my-img.vpc opts=]                      
vpc-fixed: FAIL fmt=vpc auto=raw exp=vpc [name=my-img.vpc-fixed opts=-o subformat=fixed]                                                                        
vpc-fforce: FAIL fmt=vpc auto=raw exp=vpc [name=my-img.vpc-fforce opts=-o subformat=fixed,force_size]                                                           
FAIL [2]    

Well, 2.11 is way too old, but it still does reproduce on the latest development head.


Suggested patch:
https://lists.gnu.org/archive/html/qemu-devel/2021-03/msg09422.html

@Thomas,

Is there really no way to detect the format other than relying on extension? :-(


@smoser : fixed-size VHD images don't have a header, and there is AFAIK currently no way for probing a footer in the QEMU code, so relying on the extension seems to be the only way right now, as far as I can tell.


This is an automated cleanup. This bug report has been moved to QEMU's
new bug tracker on gitlab.com and thus gets marked as 'expired' now.
Please continue with the discussion here:

 https://gitlab.com/qemu-project/qemu/-/issues/559