]> arthur.barton.de Git - bup.git/commitdiff
On ENOTTY or ENOSYS, assume filesystem doesn't support Linux attributes.
authorRob Browning <rlb@defaultvalue.org>
Sun, 12 Jun 2011 16:33:57 +0000 (11:33 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 14 Oct 2012 20:00:41 +0000 (15:00 -0500)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
lib/bup/metadata.py

index 61df9fbd92e108a387ee52b1c4c6718ad03d674d..f4b5847d75efbde740a73d44e5d267113281e9be 100644 (file)
@@ -472,8 +472,11 @@ class Metadata:
             except OSError, e:
                 if e.errno == errno.EACCES:
                     add_error('read Linux attr: %s' % e)
-                elif e.errno == errno.ENOTTY: # Inappropriate ioctl for device.
-                    add_error('read Linux attr: %s' % e)
+                elif e.errno == errno.ENOTTY or e.errno == errno.ENOSYS:
+                    # ENOTTY: Function not implemented.
+                    # ENOSYS: Inappropriate ioctl for device.
+                    # Assume filesystem doesn't support attrs.
+                    return
                 else:
                     raise