bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] new/old extract problems with 6GB sparse file


From: Joerg Schilling
Subject: Re: [Bug-tar] new/old extract problems with 6GB sparse file
Date: Mon, 19 Jun 2006 20:24:51 +0200
User-agent: nail 11.2 8/15/04

Joerg Delker <address@hidden> wrote:

> Paul Eggert wrote:
> >    $ echo '' | dd bs=1 seek=6292304383 of=jake.ntfs
> >    1+0 records in
> >    1+0 records out
> >    1 byte (1 B) copied, 7e-05 seconds, 14.3 kB/s
> >    $ ls -l jake.ntfs
> >    -rw-r--r-- 1 eggert eggert 6292304384 Jun 19 02:22 jake.ntfs
> >    $ tar-1.15.1 cSf buggy.tar jake.ntfs
> >    $ tar-CVS cSf working.tar jake.ntfs
> >    $ od -c buggy.tar >buggy.od
> >    $ od -c working.tar >working.od
> >    $ diff -u buggy.od working.od
> >    --- buggy.od     2006-06-19 02:24:37.000000000 -0700
> >    +++ working.od   2006-06-19 02:24:43.000000000 -0700
> >    @@ -4,7 +4,7 @@
> >     0000140  \0  \0  \0  \0   0   0   0   0   6   4   4  \0   0   0   0   1
> >     0000160   7   5   0  \0   0   0   0   1   7   5   0  \0   0   0   0   0
> >     0000200   0   0   0   1   0   0   0  \0   1   0   4   4   5   4   6   6
> >    -0000220   3   3   1  \0   0   1   5   4   1   0  \0       S  \0  \0  \0
> >    +0000220   3   3   1  \0   0   1   5   4   1   4  \0       S  \0  \0  \0
> > This is just a checksum difference; not worth worrying about.
> >
> >     0000240  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
> >     *
> >     0000400  \0   u   s   t   a   r          \0   e   g   g   e   r   t  \0
> >    @@ -12,11 +12,14 @@
> >     0000440  \0  \0  \0  \0  \0  \0  \0  \0  \0   e   g   g   e   r   t  \0
> >     0000460  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
> >     *
> >    -0000600  \0  \0   1   6   7   0   3   1   7   0   0   0   0  \0   0   0
> >    +0000600  \0  \0   5   6   7   0   3   1   7   0   0   0   0  \0   0   0
> > This is the bug in question: the correct number was 56703170000 (octal)
> > but the leading "5" was incorrectly output as "1".
> >
> >     0000620   0   0   0   0   0   1   0   0   0  \0  \0  \0  \0  \0  \0  \0
> >     0000640  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
> >     *
> >     0000740  \0  \0  \0   5   6   7   0   3   1   7   1   0   0   0  \0  \0
> >     0000760  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
> >     *
> >    +0001760  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \n
> >    +0002000  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
> >    +*
> > This is some data that went missing because of the bug.

As star is able to print the right size, this is mostunlikely for our case.


> What about the additional data at 1760/2000. Is that static or does it
> depend on the content?
> Any best practices how to hex edit such large files?

The only known editor that allows you to edit large binary files and search
in binary data is my ved:

ftp://ftp.berlios.de/pub/ved/alpha/

Jörg

-- 
 EMail:address@hidden (home) Jörg Schilling D-13353 Berlin
       address@hidden                (uni)  
       address@hidden     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily




reply via email to

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