[Bug 263029] [mkimg] qcow2 images are not compressed by default

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 03 Apr 2022 21:38:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263029

            Bug ID: 263029
           Summary: [mkimg] qcow2 images are not compressed by default
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: dch@freebsd.org

Using qemu-img with compression (from emulators/qemu) yields
significantly smaller images than the original mkimg one, which
appears not to be compressed at all, just sparse.

> qemu-img convert -S 1k -p -f raw -O qcow2 -c oci.raw oci.qcow
    (100.00/100%)

$ ls -FGHls
total 5824488
2551104 -rw-r--r--  1 dch  wheel   2.4G Apr  3 21:16 oci.mkimg.qcow2
2515616 -rw-r--r--  1 dch  wheel   6.0G Apr  3 21:17 oci.raw
 757768 -rw-r--r--  1 dch  wheel   740M Apr  3 21:22 oci.qemu.qcow2

-- 
You are receiving this mail because:
You are the assignee for the bug.