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

_______________________________________________
Libguestfs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to