I changed the description to be a reporting error since that
seemed to be what the bug was.
Martin, do you concur with John's assessment? If so i'll
queuue it for removal after i commit the reorg.
On Tue, Dec 16, 2003 at 02:51:16PM -0600, John Van Essen
wrote:> On Mon, 15 Dec 2003, jw schultz <jw@pegasys.ws> wrote:
>
> > OK, first pass on TODO complete.
> ....
>
> This hardlink bug report is nearly 21 months old... So I took a look
> at it using 2.5.7. See below.
>
> > BUGS ---------------------------------------------------------------
> >
> > Fix hardlink reporting
2002/03/25
> > (was: There seems to be a bug with hardlinks)
> >
> > mbp/2 build$ ls -l /tmp/a /tmp/b -i
> > /tmp/a:
> > total 32
> > 2568307 -rw-rw-r-- 3 mbp mbp 29 Mar 25 17:30 a1
> > 2568307 -rw-rw-r-- 3 mbp mbp 29 Mar 25 17:30 a2
> > 2568307 -rw-rw-r-- 3 mbp mbp 29 Mar 25 17:30 a3
> > 2568310 -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 a4
> > 2568310 -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 a5
> > 2568310 -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 b1
> > 2568310 -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 b2
> > 2568310 -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 b3
> >
> > /tmp/b:
> > total 32
> > 2568309 -rw-rw-r-- 3 mbp mbp 29 Mar 25 17:30 a1
> > 2568309 -rw-rw-r-- 3 mbp mbp 29 Mar 25 17:30 a2
> > 2568309 -rw-rw-r-- 3 mbp mbp 29 Mar 25 17:30 a3
> > 2568311 -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 a4
> > 2568311 -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 a5
> > 2568311 -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 b1
> > 2568311 -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 b2
> > 2568311 -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 b3
> > mbp/2 build$ rm -r /tmp/b && ./rsync -avH /tmp/a/ /tmp/b
> > building file list ... done
> > created directory /tmp/b
> > ./
> > a1
> > a4
> > a2 => a1
> > a3 => a2
> > wrote 350 bytes read 52 bytes 804.00 bytes/sec
> > total size is 232 speedup is 0.58
> > mbp/2 build$ rm -r /tmp/b
> > mbp/2 build$ ls -l /tmp/b
> > ls: /tmp/b: No such file or directory
> > mbp/2 build$ rm -r /tmp/b && ./rsync -avH /tmp/a/ /tmp/b
> > rm: cannot remove `/tmp/b': No such file or directory
> > mbp/2 build$ rm -f -r /tmp/b && ./rsync -avH /tmp/a/ /tmp/b
> > building file list ... done
> > created directory /tmp/b
> > ./
> > a1
> > a4
> > a2 => a1
> > a3 => a2
> > wrote 350 bytes read 52 bytes 804.00 bytes/sec
> > total size is 232 speedup is 0.58
> > mbp/2 build$ ls -l /tmp/b
> > total 32
> > -rw-rw-r-- 3 mbp mbp 29 Mar 25 17:30 a1
> > -rw-rw-r-- 3 mbp mbp 29 Mar 25 17:30 a2
> > -rw-rw-r-- 3 mbp mbp 29 Mar 25 17:30 a3
> > -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 a4
> > -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 a5
> > -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 b1
> > -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 b2
> > -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 b3
> > mbp/2 build$ ls -l /tmp/a
> > total 32
> > -rw-rw-r-- 3 mbp mbp 29 Mar 25 17:30 a1
> > -rw-rw-r-- 3 mbp mbp 29 Mar 25 17:30 a2
> > -rw-rw-r-- 3 mbp mbp 29 Mar 25 17:30 a3
> > -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 a4
> > -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 a5
> > -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 b1
> > -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 b2
> > -rw-rw-r-- 5 mbp mbp 29 Mar 25 17:30 b3
>
>
> Created the same set of test files...
>
> $ ls -l a
> total 32
> -rw-r--r-- 3 jve users 29 Dec 16 12:39 a1
> -rw-r--r-- 3 jve users 29 Dec 16 12:39 a2
> -rw-r--r-- 3 jve users 29 Dec 16 12:39 a3
> -rw-r--r-- 5 jve users 29 Dec 16 12:39 a4
> -rw-r--r-- 5 jve users 29 Dec 16 12:39 a5
> -rw-r--r-- 5 jve users 29 Dec 16 12:39 b1
> -rw-r--r-- 5 jve users 29 Dec 16 12:39 b2
> -rw-r--r-- 5 jve users 29 Dec 16 12:39 b3
>
> $ rsync -avH a/ b/
> building file list ... done
> created directory b
> ./
> a1
> a4
> a2 => a1 <<< note that it is now
> a3 => a2 <<< reporting all of the
> a5 => a4 <<< hardlinks
> b1 => a5 <<<
> b2 => b1 <<<
> b3 => b2 <<<
>
> wrote 340 bytes read 52 bytes 784.00 bytes/sec
> total size is 232 speedup is 0.59
>
> $ ls -l a b
> a:
> total 32
> -rw-r--r-- 3 jve users 29 Dec 16 12:39 a1
> -rw-r--r-- 3 jve users 29 Dec 16 12:39 a2
> -rw-r--r-- 3 jve users 29 Dec 16 12:39 a3
> -rw-r--r-- 5 jve users 29 Dec 16 12:39 a4
> -rw-r--r-- 5 jve users 29 Dec 16 12:39 a5
> -rw-r--r-- 5 jve users 29 Dec 16 12:39 b1
> -rw-r--r-- 5 jve users 29 Dec 16 12:39 b2
> -rw-r--r-- 5 jve users 29 Dec 16 12:39 b3
>
> b:
> total 32
> -rw-r--r-- 3 jve users 29 Dec 16 12:39 a1
> -rw-r--r-- 3 jve users 29 Dec 16 12:39 a2
> -rw-r--r-- 3 jve users 29 Dec 16 12:39 a3
> -rw-r--r-- 5 jve users 29 Dec 16 12:39 a4
> -rw-r--r-- 5 jve users 29 Dec 16 12:39 a5
> -rw-r--r-- 5 jve users 29 Dec 16 12:39 b1
> -rw-r--r-- 5 jve users 29 Dec 16 12:39 b2
> -rw-r--r-- 5 jve users 29 Dec 16 12:39 b3
>
>
> So I think this TODO item can be removed.
> --
> John Van Essen Univ of MN Alumnus <vanes002@umn.edu>
>
> --
> To unsubscribe or change options:
http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>
--
________________________________________________________________
J.W. Schultz Pegasystems Technologies
email address: jw@pegasys.ws
Remember Cernan and Schmitt