[BusyBox] unarchiving tools reorganised again

Glenn McGrath bug1 at optushome.com.au
Sun Jun 17 23:07:11 UTC 2001


Laurence Anderson wrote:

>I've attached a patch to fix cpio, and fseek on streams that support it to 
>speed things up. Hopefully I havn't broken tar & ar, havn't really checked 
>too much. Do hard links work in tar?
>
I didnt think tar supported hard links ?

I have merged you patch into unarchive3.diff at 
http://people.debian.org/~bug1/busybox_patches/
I seperated out stuff that wont be commited (untar applet and 
experimental dpkg stuff).
 
I havent actually dont much more testing myself yet.

As for hard links in cpio,  if hard links are only supported in cpio it 
would be better to keep the code to handle it in cpio headers section 
rather than extract, but i guess either of the methods you described in 
your email would be ok, its no problem to add extra fields to 
file_headers struct as its only used once at a time anyway. Which 
reminds me i should be freeing some pointers around their somewhere.

I have a look at hard links today.

Glenn






More information about the busybox mailing list