Date: Sat, 12 Jan 2013 10:52:26 -0500 From: Fbsd8 <fbsd8@a1poweruser.com> To: FreeBSD questions <questions@freebsd.org> Subject: pax command and sparse files Message-ID: <50F186BA.3020504@a1poweruser.com>
next in thread | raw e-mail | index | archive | help
I have a sparse file allocated to 1G ls -lh test.img shows 1.0G du -h test.img shows 5.9M This is what I was expecting. Now after pax on that single test.img file ls -lh test.img.tar.gz shows 1.4M du -h test.img.tar.gz shows 1.4M This is what I was expecting. Here is the problem: Running pax on a native directory tree takes 2 seconds to archive it. I put that same directory tree into a sparse file and now pax takes 35 seconds to archive it. The resulting archive file is good and restores correctlly. Why does pax take so long to archive a sparse file?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50F186BA.3020504>