[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ALL my tar.bz2-backups unreadable, CRC-error!
From: |
Ralph Corderoy |
Subject: |
Re: ALL my tar.bz2-backups unreadable, CRC-error! |
Date: |
Fri, 09 Aug 2002 10:53:46 GMT |
Hi Hans,
> > If that was the problem, then it might be possible to speculatively
> > turn the dodgy characters pairs back into a single linefeed and see
> > if bzip2 gets further.
>
> That's quite a can of worms you're about to open.
No it isn't, you merely think it is ;-)
> The problem being that, as you find a CR+LF sequence in the file,
> there's no way of knowing, offhand, whether that was a lone LF in the
> unmutilated original, or a CR+LF, too.
Yes, I'm perfectly aware of that. That's why I said `see if bzip2 gets
further'. If you can find out from bzip2 how far it got through the
file before detecting a problem you could use that to decide whether to
leave the current CR+LF alone or alter it before moving onto the next
one, i.e. O(n) rather than O(2^n).
Still might take a while, but doable before the universe ends.
Cheers,
Ralph.