Re: Ye Olde Package Manager

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



Le dimanche 16 à 13:52, Ng Oon-Ee a écrit :
> On Sun, 2011-01-16 at 12:22 +0100, Frédéric Perrin wrote:
>> Why would a database be more subject to corruption than a tar file, and
>> harder to recover?
>
> An answer from an average user: I believe in tar files corruption would
> only affect the files stored at that 'place' in the tar files. So for
> example if there's a failing HD and 20 sections are affected, 'only'
> that information is lost.

tar files are stored with a header (a 512-bytes block) that describes
the file name, the size of the file, etc., then (filesize / 512) blocks
of data, then 2 blocks of \0, and repeat for the next file. If one file
header is corrupted and the file size can't be read or is wrong,
everything after can't be read. Now, in our case, two blocks of \0 are
unlikely in a text file, so this can be used to detect this case. Hum,
maybe you're right, but still tar files seem rather bad prepared to deal
with corruption.

-- 
Frédéric Perrin -- http://tar-jx.bz


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux