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

mirage / ocaml-qcow / 16
82%

Build:
DEFAULT BRANCH: master
Ran 09 Nov 2015 12:08PM UTC
Jobs 1
Files 7
Run time 1s
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

pending completion
16

Pull #7

travis-ci

djs55
Cope with files which are not whole numbers of clusters

`qemu-img` seems to "allocate" the final cluster in a file by writing
a single sector only. Cope with this by:

- on every `read`, check if we're in this last-cluster situation and
  synthesize zeroes for missing sectors
- on `connect`, round up to the next cluster size when setting the
  `next_cluster` pointer.

With this patch, a `qemu-img` generated .qcow2 seems to work ok with
this code as measured by the CLI `check` subcommand.

Signed-off-by: David Scott <dave.scott@unikernel.com>
Pull Request #7: Cope with files which are not whole numbers of clusters

17 of 17 new or added lines in 1 file covered. (100.0%)

460 of 574 relevant lines covered (80.14%)

3797845.18 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
100.0
lib/qcow.ml
Jobs
ID Job ID Ran Files Coverage
1 16.1 09 Nov 2015 12:08PM UTC 0
80.14
Travis Job 16.1
Source Files on build 16
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #16
  • Pull Request #7
  • PR Base - master (#15)
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