Commit 2c510f4
committed
Add support for readonly FLAT/ZERO VMDK format
Currently, it's mainly used for EROFS to merge hundreds of sub-blobs
(container image layers) into one block device to avoid having too
many block devices (and it would even be impossible for virtio-mmio
since legacy IRQs is much limited in libkrun).
Why VMDK is useful? Since it seems to be the only standard and simple
way to support one-single block device that consists of a collection of
multiple file parts among popular virtualization products such as QEMU
and VirtualBox.
Update the `krun_add_disk2` API to specify the VMDK format:
- KRUN_DISK_FORMAT_VMDK
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>1 parent 8a14673 commit 2c510f4
File tree
6 files changed
+17
-6
lines changed- include
- src
- devices
- src/virtio/block
- libkrun/src
6 files changed
+17
-6
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
243 | 250 | | |
244 | 251 | | |
245 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
703 | 703 | | |
704 | 704 | | |
705 | 705 | | |
| 706 | + | |
706 | 707 | | |
707 | 708 | | |
708 | 709 | | |
| |||
0 commit comments