Comment 9 for bug 1619362

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 1619362] Re: images should not be largely bigger than the actual content

On Fri, Sep 02, 2016 at 04:04:30PM -0000, Oliver Grawert wrote:
> excuse my ignorance, but what is the benefit of using a sparse file at
> all over a properly sized img ? i really dont see any advantage in
> wasting all these zeros :)

I'm not opposed to us switching to online-resizing of the filesystem. But
here are a couple reasons why, in general, we should be doing sparseness and
not just relying on on-line resizing:

 - Only the rootfs is auto-expanded. All the other filesystems get as much
   space as is initially allocated in the gadget snap, so there are going to
   be a lot of zeroes there.
 - Some partition schemes may require placing additional partitions at the
   end of the disk, /after/ the writable partition. In this case, we won't
   be able to online resize anything, but will instead have to statically
   allocate it.