Don't underestimate cloud image builders
Don't underestimate cloud image builders
Posted May 14, 2022 7:14 UTC (Sat) by Wol (subscriber, #4433)In reply to: Don't underestimate cloud image builders by garloff
Parent article: Changing filesystem resize patterns
So have an lvm-style option that says "create 1TB volume, with initial 10GB allocation". Then when I run mkfs it thinks its got a terabyte to play with. We have things like trim, and all that, nowadays, so the volume level has all the information it needs to only allocate and use the actual space it needs.
This way (in line with Unix's "do one thing and do it well") we don't need to change any filesystems or anything - we just have a layer dedicated to "squashing" a disk image into the smallest real disk space reasonably possible. Maybe tweak the layers above to "format by allocating zeroes" rather than actually writing "this space is empty" data, and you can have large, optimised, allocation tables that don't actually take up any disk space.
Cheers,
Wol
