Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2007 22:30:28 -0700
From:      Tim Kientzle <kientzle@freebsd.org>
To:        youshi10@u.washington.edu
Cc:        hackers@freebsd.org
Subject:   Re: Using shell commands versus C equivalents
Message-ID:  <4670D274.60902@freebsd.org>
In-Reply-To: <Pine.LNX.4.43.0706131421010.18410@hymn01.u.washington.edu>
References:  <Pine.LNX.4.43.0706131421010.18410@hymn01.u.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
>> I spent a lot of time recently in libarchive/bsdtar optimizing
>> the disk handling; I can share lots of ideas for improving
>> performance of disk-bound operations like this. 

One thing you might find useful:  libarchive has an
API for "creating things on disk," which handles a lot
of trivia (creating parent directories transparently,
restoring permissions, users, file flags, etc.).

It is, of course, especially useful if you're pulling
things out of tar archives, but can be used separately
from that.  Since libarchive is a standard part of
FreeBSD, you should feel free to use it.

Tim K



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4670D274.60902>