bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tar file system


From: Chiaki Ishikawa
Subject: Re: tar file system
Date: Mon, 24 Dec 2001 03:58:00 +0900 (JST)

>> Be careful about one thing: if the same file occurs more than once in
>> the archive, you must use the *last* occurrence, not the first, as the
>> contents of the file.  That might require scanning through the whole
>> archive.
>
>Scan the archive in reverse.  :)

I wish if we could.

The tar doesn't put the trailer record at the end for us
to jump back toward the beginning of file reliably  if I recall
correctly.

So our best bet is to create a linked list of
valid embedded entity that needs to be retrieved if a member
name is given as we scan forward *ONCE* to save 
the time for re-scanning later on.

Creating such external list is a waste of time and hardware resources,
but tar archive was never meant to be scanned backward.  After all, it
was Tape ARchive.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]