diff options
author | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2008-11-12 18:51:09 +0000 |
---|---|---|
committer | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2008-11-12 18:51:09 +0000 |
commit | 02512182c3e6eccb0b2388150b9691c4166e63d7 (patch) | |
tree | f1f6bc86fb1b64e9021d52b26bbffcee7ce1885c /rdiff-backup | |
parent | 7f3f9d5c075c8ce122ed69b51cff12dcfbdf8794 (diff) | |
download | rdiff-backup-02512182c3e6eccb0b2388150b9691c4166e63d7.tar.gz |
Add warning message if pyxattr is below version 0.2.2.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@958 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup')
-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") |