summary refs log tree commit diff stats
path: root/results/classifier/gemma3:12b/files/986
blob: 5825c4a4a3886c666a656e0f4984d8e77bd200fc (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
vpc images are created with bigger virtual size than required
Description of problem:
Required virtual size is 895287296, but as qemu-img info reports it is 895426560.
Steps to reproduce:
1. qemu-img create -f vpc img1.vpc 895287296
2. qemu-img info img1.vpc
Additional information:
Converting back and forth is not possible as a result
   ```
$ qemu-img info openSUSE-Leap-15.3-GNOME-Live-x86_64-Media.iso 
image: openSUSE-Leap-15.3-GNOME-Live-x86_64-Media.iso
file format: raw
virtual size: 854 MiB (895287296 bytes)
disk size: 854 MiB

$ qemu-img create -f vpc img1.vpc 895287296
Formatting 'img1.vpc', fmt=vpc size=895287296

$ qemu-img convert -n \
    -f raw openSUSE-Leap-15.3-GNOME-Live-x86_64-Media.iso \
    -O vpc img1.vpc
    
$ qemu-img compare \
    -f raw openSUSE-Leap-15.3-GNOME-Live-x86_64-Media.iso \
    -F vpc img1.vpc
Warning: Image size mismatch!
Images are identical.

$ qemu-img create -f raw img2.raw 895287296
Formatting 'img2.raw', fmt=raw size=895287296

$ qemu-img convert -n -f vpc img1.vpc -O raw img2.raw
qemu-img: output file is smaller than input file

$ qemu-img compare \
    -f raw openSUSE-Leap-15.3-GNOME-Live-x86_64-Media.iso \
    -F raw img2.raw
Content mismatch at offset 0!
   ```