Bug 829916 - Avoid a dry-run error trying to stat a prior hardlink [NEEDINFO]
Avoid a dry-run error trying to stat a prior hardlink
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rsync (Show other bugs)
ppc64 Linux
unspecified Severity low
: rc
: ---
Assigned To: Luboš Uhliarik
BaseOS QE Security Team
Depends On:
  Show dependency treegraph
Reported: 2012-06-07 15:48 EDT by Renato Botelho do Couto
Modified: 2016-08-16 09:46 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-08-16 09:46:37 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
mzember: needinfo? (rbcouto)

Attachments (Terms of Use)

  None (edit)
Description Renato Botelho do Couto 2012-06-07 15:48:58 EDT
Description of problem:
When you run rsync with --dry-run and -H parameters, and there are hardlinks on the server side, it tries to stat the hardlink that doesn't exist yet.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.A server with hardlinks
2.rsync -H --dry-run
Actual results:
Errors like this:
rsync: stat "/path/file" failed: No such file or directory (2)

Expected results:
No errors

Additional info:
This bug was fixed on rsync 3.0.7, at the following commit:

Comment 2 RHEL Product and Program Management 2012-09-07 01:09:29 EDT
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.
Comment 3 Martin Žember 2014-06-25 11:55:46 EDT
How is it possible to reproduce the bug?

I have tried these commands:

cd /tmp
mkdir s/ t/
touch s/lala
ln s/lala s/hard
rsync --rsh=ssh -avz -H --dry-run s/ localhost:/tmp/t/

I have also tried with more hardlinks pointing to the same file and transferring in the opposite direction (from the server) and with none/some/all of the files present in the target directory.

The output usually looks like this:
$ rsync --rsh=ssh -avH --dry-run s/ localhost:/tmp/t/
sending incremental file list
hard => lala

sent 70 bytes  received 30 bytes  200.00 bytes/sec
total size is 0  speedup is 0.00 (DRY RUN)

My version is (I guess the architecture is not important here):

I use the same machine as a server and as a client, but connecting through ssh.
Comment 5 Martin Žember 2014-07-01 12:28:06 EDT
I have tried the commands and some of the mentioned scenarios from the comment #3 on the same architecture as the reporter has, but without any success (no errors).

Comment 7 Tomáš Hozza 2016-08-16 09:46:37 EDT
This request was evaluated by Red Hat Engineering for inclusion in a Red
Hat Enterprise Linux maintenance release.

As this bug has been in NEEDINFO for an extended period of time we are going
to close this bug due to inactivity. If you would like to pursue this
matter feel free to reopen this bug and attach the needed information.

With the goal of minimizing risk of change for deployed systems, and in
response to customer and partner requirements, Red Hat takes a conservative
approach when evaluating enhancements for inclusion in maintenance updates
for currently deployed products. The primary objectives of update releases
are to enable new hardware platform support and to resolve critical

However, Red Hat will further review this request for potential inclusion
in future major releases of Red Hat Enterprise Linux.

Note You need to log in before you can comment on or make changes to this bug.