Interesting speed benchmarks
Peter Jeremy
peterjeremy at optushome.com.au
Sat Jan 27 21:42:39 UTC 2007
On Sat, 2007-Jan-27 11:54:37 -0500, Brian Reichert wrote:
>On Sat, Jan 27, 2007 at 09:43:52AM +1100, Peter Jeremy wrote:
>> Note that dump/restore is the only tool that can correctly reproduce
>> sparse files. tar, cpio and pax also have filename and file size
>> restrictions. I don't think that cpio or pax support ACLs or file
>> flags.
>
>I thought 'star' handled sparse files and all the extra magic? Not
>that this is germaine to the topic at hand...
You can detect a sparse file by comparing the length of the file
with the number of allocated blocks. You can't determine whether a
specific block is all NULLs or not allocated without either bypassing
the filesystem (which dump does) or using a syscall to retrieve a
bitmap of allocated blocks (which FreeBSD doesn't have).
--
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070127/6e63450f/attachment.pgp
More information about the freebsd-current
mailing list