[Libguestfs] [PATCH 0/2] pxzcat preallocation

Gabriel de Perthuis g2p.code at gmail.com
Tue Oct 22 16:56:37 UTC 2013


Hello,
Here is a quick patch so that pxzcat creates sparse files without
fragmentation.  It preallocates the file, then discards extents that
weren't written.  This relies on Linux syscalls.

  Preallocate output file
  Discard unwritten ranges

 pxzcat.c | 26 ++++++++++++++++++++++++--
 1 file changed, 24 insertions(+), 2 deletions(-)

-- 
1.8.4.1.563.g8e6fc32




More information about the Libguestfs mailing list