Commit 8f4290fe authored by owsla's avatar owsla

Don't print the warning about hard links if the user has specified the

--no-hard-links option.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@861 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent ccfe9017
New in v1.1.15 (????/??/??)
---------------------------
Don't print the warning message about unsupported hard links if the user
has specified the --no-hard-links option. (Suggested by Andreas Olsson)
Print a more helpful error message when we get a "Result too large"
error when trying to copy a file. (Andrew Ferguson)
......
......@@ -185,8 +185,9 @@ class FSAbilities:
if hl_source.getinode() != hl_dest.getinode():
raise IOError(errno.EOPNOTSUPP, "Hard links don't compare")
except (IOError, OSError):
log.Log("Warning: hard linking not supported by filesystem "
"at %s" % (self.root_rp.path,), 3)
if Globals.preserve_hardlinks != 0:
log.Log("Warning: hard linking not supported by filesystem "
"at %s" % (self.root_rp.path,), 3)
self.hardlinks = 0
else: self.hardlinks = 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment