bug-tar
[Top][All Lists]
Advanced

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

RE: [Bug-tar] Using --verify and --one-file-system causes verificationfa


From: John McDole
Subject: RE: [Bug-tar] Using --verify and --one-file-system causes verificationfailures / false difference
Date: Sat, 22 Oct 2005 10:18:08 -0400

Hello All,

The bug occurs when --listed-incremental and --one-file-system are used together.  During the verification phase, scan directory is called with device = 0; causing the stack to be grown with 'N' and children to be set NO_CHILDREN.  A simple hack I did was to create a boolean == 0 ? false:true;  this is added to the two one_file_system_check conditionals.  Obviously this isn't a solution, sending the correct device number would work.

--
John


-----Original Message-----
From:   address@hidden on behalf of John McDole
Sent:   Thu 10/20/2005 1:03 PM
To:     Sergey Poznyakoff
Cc:     address@hidden
Subject:        Re: [Bug-tar] Using --verify and --one-file-system causes verificationfailures / false difference
Hello Sergey,

I received the same results:
chef home # /tmp/tar-1.15.2-20050902/src/tar --verify --totals --create
--preserve-permissions --absolute-names --one-file-system --label
full.jmcdole.onefilesystem.2005-10-20 --file
full.jmcdole.onefilesystem.2005-10-20.tar --verbose --listed-incremental
full.jmcdole.onefilesystem.2005-10-20.snap /home/jmcdole/ >>
full.jmcdole.onefilesystem.2005-10-20.log 2>&1

chef home # grep Contents full.jmcdole.onefilesystem.2005-10-20.log
/home/jmcdole: Contents differ
/home/jmcdole/.tin/news: Contents differ
/home/jmcdole/CVSROOT/CVS: Contents differ
/home/jmcdole/McDoleUtils/CVS: Contents differ
/home/jmcdole/McDoleUtils/FemaBackupScript: Contents differ
/home/jmcdole/McDoleUtils/FontAntiAlias: Contents differ
/home/jmcdole/McDoleUtils/FontAntiAlias/AntiAlias/CVS: Contents differ
/home/jmcdole/McDoleUtils/Huffman: Contents differ
/home/jmcdole/McDoleUtils/PaletteSaturator: Contents differ
/home/jmcdole/McDoleUtils/PaletteSaturator/SaturatePalette/CVS: Contents
differ
/home/jmcdole/src/MainFoodChain/bsp/2.6: Contents differ
/home/jmcdole/src/MainFoodChain/bsp/CVS: Contents differ
/home/jmcdole/src/MainFoodChain/genesis/CVS: Contents differ

chef home # /tmp/tar-1.15.2-20050902/src/tar df
full.jmcdole.onefilesystem.2005-10-20.tar

chef home # /tmp/tar-1.15.2-20050902/src/tar df
full.jmcdole.onefilesystem.2005-10-20.tar  --one-file-system
/home/jmcdole: Contents differ
/home/jmcdole/.tin/news: Contents differ
/home/jmcdole/CVSROOT/CVS: Contents differ
/home/jmcdole/McDoleUtils/CVS: Contents differ
/home/jmcdole/McDoleUtils/FemaBackupScript: Contents differ
/home/jmcdole/McDoleUtils/FontAntiAlias: Contents differ
/home/jmcdole/McDoleUtils/FontAntiAlias/AntiAlias/CVS: Contents differ
/home/jmcdole/McDoleUtils/Huffman: Contents differ
/home/jmcdole/McDoleUtils/PaletteSaturator: Contents differ
/home/jmcdole/McDoleUtils/PaletteSaturator/SaturatePalette/CVS: Contents
differ
/home/jmcdole/src/MainFoodChain/bsp/2.6: Contents differ
/home/jmcdole/src/MainFoodChain/bsp/CVS: Contents differ
/home/jmcdole/src/MainFoodChain/genesis/CVS: Contents differ

Lastly, here's the diff's of the two tars, one with and one without the
--one-file-system flag:

chef home # hexdump -C full.jmcdole.2005-10-20.tar >
full.jmcdole.2005-10-20.hex

chef home # hexdump -C full.jmcdole.onefilesystem.2005-10-20.tar >
full.jmcdole.onefilesystem.2005-10-20.hex

chef home # colordiff full.jmcdole.2005-10-20.hex
full.jmcdole.onefilesystem.2005-10-20.hex | less -r
1,3c1,4
< 00000000  66 75 6c 6c 2e 6a 6d 63  64 6f 6c 65 2e 32 30 30
|full.jmcdole.200|
< 00000010  35 2d 31 30 2d 32 30 00  00 00 00 00 00 00 00 00
|5-10-20.........|
< 00000020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
|................|
---
 > 00000000  66 75 6c 6c 2e 6a 6d 63  64 6f 6c 65 2e 6f 6e 65
|full.jmcdole.one|
 > 00000010  66 69 6c 65 73 79 73 74  65 6d 2e 32 30 30 35 2d
|filesystem.2005-|
 > 00000020  31 30 2d 32 30 00 00 00  00 00 00 00 00 00 00 00
|10-20...........|
 > 00000030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
|................|
6c7
< 00000090  33 36 32 00 30 30 35 31  33 36 00 20 56 00 00 00
|362.005136. V...|
---
 > 00000090  30 35 34 00 30 31 30 30  32 31 00 20 56 00 00 00
|054.010021. V...|

--
John Thomas McDole
<address@hidden>
Nagra STB Technologies Software Engineer
938 Peachtree St. NE
Atlanta, GA 30309-3919  [USA]
+1.404.525.0940 x126 [voice]


_______________________________________________
Bug-tar mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-tar



reply via email to

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