I noticed that rsync is happy to hard-link a device node from a
--link-dest dir even if its mtime differs from that of the source device
node and --times is given.  Is this behavior expected?  It seems to
break the rule that a difference in preserved attributes disqualifies a
hard link.

To see the behavior, run the following as root:

mkdir src dest basis
mknod src/null c 1 3
sleep 1
mknod basis/null c 1 3
rsync -a -ii --link-dest=../basis/ src/ dest/
find . -ls
stat src/null dest/null

Rsync produces the following very bogus-looking itemize output:

.d          ./
hD..t...... null

Matt

-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to