• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

xapi-project / xen-api / 20022657043
80%

Build:
DEFAULT BRANCH: master
Ran 08 Dec 2025 09:11AM UTC
Jobs 1
Files 34
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Dec 2025 09:02AM UTC coverage: 80.459%. Remained the same
20022657043

push

github

web-flow
qcow: Only process allocated clusters on export from raw (#6769)

Implements an optimization similar to the "hybrid" mode in `vhd-tool`:
when exporting to qcow from raw, if the VDI is backed by a QCOW file,
read its header, determine the allocated clusters, and only export
these. This allows skipping over zero clusters in a sparse disk.

Unlike `vhd-tool`, however, this is implemented in a modular way -
`qcow-stream-tool` gets a new `read_headers` command that outputs the
list of allocated clusters (and other info) in JSON format, which allows
it to be consumed by the Python `qcow-to-stdout` script (and by
`vhd-tool` in future stages of this work, see below).

This is the first step of improving handling of sparse VDIs in xapi.
I've got the rest working, but I'll be opening PRs step-by-step for the
following once this PR gets merged:
1. `vhd-tool` gets a `read_headers` command outputting list of allocated
blocks as well
2. `stream_vdi` uses `read_headers` for both VHD and QCOW to avoid
reading zero blocks on XVA export (greatly speeds up handling of sparse
disks and avoids issues with timeouts)
3. `vhd-tool` and `qcow-to-stdout` can read headers of the opposite
format, allowing faster export of sparse VDIs backed by a different
format.

Best reviewed by commit.

3504 of 4355 relevant lines covered (80.46%)

0.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 20022657043.1 08 Dec 2025 09:11AM UTC 34
80.46
GitHub Action Run
Source Files on build 20022657043
  • Tree
  • List 34
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20022657043
  • 3387a723 on github
  • Prev Build on master (#19982150602)
  • Next Build on master (#20050970249)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc