diff options
-rw-r--r-- | rdiff-backup/CHANGELOG | 2 | ||||
-rw-r--r-- | rdiff-backup/rdiff_backup/fs_abilities.py | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG index fe94df9..3ca7fd7 100644 --- a/rdiff-backup/CHANGELOG +++ b/rdiff-backup/CHANGELOG @@ -1,6 +1,8 @@ New in v1.2.3 (????/??/??) --------------------------- +Add warning message if pyxattr is below version 0.2.2. (Andrew Ferguson) + Add "Stale NFS file handle" (ESTALE) to the list of recoverable errors. Thanks to Guillaume Vachon for reporting the issue. (Andrew Ferguson) diff --git a/rdiff-backup/rdiff_backup/fs_abilities.py b/rdiff-backup/rdiff_backup/fs_abilities.py index eae41c1..73a0cb8 100644 --- a/rdiff-backup/rdiff_backup/fs_abilities.py +++ b/rdiff-backup/rdiff_backup/fs_abilities.py @@ -364,6 +364,16 @@ class FSAbilities: return try: + ver = xattr.__version__ + except AttributeError: + ver = 'unknown' + if ver < '0.2.2' or ver == 'unknown': + log.Log("Warning: Your version of pyxattr (%s) has broken support " + "for extended\nattributes on symlinks. If you choose not " + "to upgrade to a more recent version,\nyou may see many " + "warning messages from listattr().\n" % (ver,), 3) + + try: xattr.listxattr(rp.path) if write: xattr.setxattr(rp.path, "user.test", "test val") |