qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Using TRIM to shrink qcow2 images
@ 2013-08-08 10:34 Ralf Ramsauer
  2013-08-08 11:47 ` François Revol
  2013-08-08 12:00 ` Paolo Bonzini
  0 siblings, 2 replies; 7+ messages in thread
From: Ralf Ramsauer @ 2013-08-08 10:34 UTC (permalink / raw)
  To: qemu-devel

Hi,

QCOW2 uses a similar idea like file holes (sparse files) on filesystems [1].
RAW Images also may use file holes.

If qemu would support TRIM, then the guest could easily discard and zero
all unused blocks.
The host system could detect all unused blocks in a (e.g.) qcow2 image
and shrink it down to its minimum size.

Did anyone already think about that?

[1] : https://people.gnome.org/~markmc/qcow-image-format.html

Regards,

-- 
Ralf Ramsauer

PGP: 0x8F10049B

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-10-04 12:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-08 10:34 [Qemu-devel] Using TRIM to shrink qcow2 images Ralf Ramsauer
2013-08-08 11:47 ` François Revol
2013-08-08 12:00 ` Paolo Bonzini
2013-10-04  6:22   ` Alexey Kardashevskiy
2013-10-04  7:05     ` Paolo Bonzini
2013-10-04  7:07       ` Alexey Kardashevskiy
2013-10-04 12:45         ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).