Package: star
Version: 1.5a57-1

It seems that a diff command has an error. This error occurs if at the same
time there are new files in the target directory since the archive was
created and some files, that were archived, were deleted. Take a look for a
small and simple example (see my comment after signs '#'):
# Create new directory
mkdir test
# Create file 'test.0' in new directory
dd count=0 if=/dev/zero of=test/test.0
# Create a new tarfile with -dump option
star -cvj -dump -acl artype=exustar -f=test.star.bz2 test
# Create file 'test.1' in target directory
dd count=0 if=/dev/zero of=test/test.1
# Look for differences between archive and target directory
# See also my comments in the output of star program
star --diff -vvj -dump -acl artype=exustar -f=test.star.bz2 test
>
diffopts=perm,type,nlink,uid,gid,uname,gname,size,data,rdev,hardlink,symlink
,sparse,mtime,ctime,dir,acl,xattr,fflags
> Release star 1.5a57 (i686-pc-linux-gnu)
> Archtype exustar
> Dumpdate 1134393164.963331 (Mon Dec 12 14:12:44 2005)
> Volno 1
> Blocksize 20
# So, that's right, file 'test.1' is only on disk
> Only on disk 'test/': 'test.1'
> test/: different mtime,ctime,dir
> 0 drwxr-sr-x 2 root/staff Dec 12 14:09 2005 test/
> 0 drwxr-sr-x 2 root/staff Dec 12 14:13 2005 test/
> star: 'test' did not match
> star: 1 blocks + 0 bytes (total of 10240 bytes = 10.00k).
# Remove file 'test.0' from the target directory
rm test/test.0
# Look for differences between archive and target directory
# See also my comments in the output of star program
star --diff -vvj -dump -acl artype=exustar -f=test.star.bz2 test
>
diffopts=perm,type,nlink,uid,gid,uname,gname,size,data,rdev,hardlink,symlink
,sparse,mtime,ctime,dir,acl,xattr,fflags
> Release star 1.5a57 (i686-pc-linux-gnu)
> Archtype exustar
> Dumpdate 1134393164.963331 (Mon Dec 12 14:12:44 2005)
> Volno 1
> Blocksize 20
# So, that's is also right, file 'test.o' is only in archive.
# But where is the information that file 'test.1' is only on disk???!!!
> Only in archive 'test/': 'test.0'
> test/: different mtime,ctime,dir
> 0 drwxr-sr-x 2 root/staff Dec 12 14:09 2005 test/
> 0 drwxr-sr-x 2 root/staff Dec 12 14:16 2005 test/
> star: No such file or directory. Cannot stat 'test/test.0'.
> star: 'test' did not match
> star: 1 blocks + 0 bytes (total of 10240 bytes = 10.00k).
> star: The following problems occurred during archive processing:
> star: Cannot: stat 1, open 0, read/write 0. Size changed 0.
> star: Missing links 0, Name too long 0, File too big 0, Not dumped 0.
> star: Processed all possible files, despite earlier errors.
# Create another 2 files
dd count=0 if=/dev/zero of=test/test.2
dd count=0 if=/dev/zero of=test/test.3
# Look for differences between archive and target directory
# See also my comments in the output of star program
star --diff -vvj -dump -acl artype=exustar -f=test.star.bz2 test
>
diffopts=perm,type,nlink,uid,gid,uname,gname,size,data,rdev,hardlink,symlink
,sparse,mtime,ctime,dir,acl,xattr,fflags
> Release star 1.5a57 (i686-pc-linux-gnu)
> Archtype exustar
> Dumpdate 1134393164.963331 (Mon Dec 12 14:12:44 2005)
> Volno 1
> Blocksize 20
# OK, all is almost right, but where is the information that file 'test.1'
is only on disk???!!!
> Only on disk 'test/': 'test.2'
> Only on disk 'test/': 'test.3'
> Only in archive 'test/': 'test.0'
> test/: different mtime,ctime,dir
> 0 drwxr-sr-x 2 root/staff Dec 12 14:09 2005 test/
> 0 drwxr-sr-x 2 root/staff Dec 12 14:20 2005 test/
> star: No such file or directory. Cannot stat 'test/test.0'.
> star: 'test' did not match
> star: 1 blocks + 0 bytes (total of 10240 bytes = 10.00k).
> star: The following problems occurred during archive processing:
> star: Cannot: stat 1, open 0, read/write 0. Size changed 0.
> star: Missing links 0, Name too long 0, File too big 0, Not dumped 0.
> star: Processed all possible files, despite earlier errors.
# Create file 'test.0' one more time
dd count=0 if=/dev/zero of=test/test.0
# Look for differences between archive and target directory
# See also my comments in the output of star program
star --diff -vvj -dump -acl artype=exustar -f=test.star.bz2 test
>
diffopts=perm,type,nlink,uid,gid,uname,gname,size,data,rdev,hardlink,symlink
,sparse,mtime,ctime,dir,acl,xattr,fflags
> Release star 1.5a57 (i686-pc-linux-gnu)
> Archtype exustar
> Dumpdate 1134393164.963331 (Mon Dec 12 14:12:44 2005)
> Volno 1
> Blocksize 20
# All is OK!!!
> Only on disk 'test/': 'test.1'
> Only on disk 'test/': 'test.2'
> Only on disk 'test/': 'test.3'
> test/: different mtime,ctime,dir
> 0 drwxr-sr-x 2 root/staff Dec 12 14:09 2005 test/
> 0 drwxr-sr-x 2 root/staff Dec 12 14:22 2005 test/
> test/test.0: different mtime,ctime
> 0 -rw-r--r-- 1 root/staff Dec 12 14:09 2005 test/test.0
> 0 -rw-r--r-- 1 root/staff Dec 12 14:22 2005 test/test.0
> star: 'test' did not match
> star: 1 blocks + 0 bytes (total of 10240 bytes = 10.00k).

CONCLUSION:
This error is very CRITICAL, since DATA CAN BE LOST, if an incremental
backup will be done on the base of output of command diff.

I am using Debian GNU/Linux 3.1 (sarge), kernel 2.6.8 (was built from
package kernel-source-2.6.8) and libc6  2.3.2.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to