From 7a44ba5463b2a956b6fc6f98c3442a856ae7ac8b Mon Sep 17 00:00:00 2001 From: owsla Date: Wed, 2 Jan 2008 01:53:22 +0000 Subject: 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/trunk@861 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/rdiff_backup/fs_abilities.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rdiff-backup/rdiff_backup/fs_abilities.py') diff --git a/rdiff-backup/rdiff_backup/fs_abilities.py b/rdiff-backup/rdiff_backup/fs_abilities.py index 7646d87..2274104 100644 --- a/rdiff-backup/rdiff_backup/fs_abilities.py +++ b/rdiff-backup/rdiff_backup/fs_abilities.py @@ -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 -- cgit v1.2.1