]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/metadata.py
Handle EOPNOTSUPP as an indicator that Linux attrs are not supported.
[bup.git] / lib / bup / metadata.py
index c851525c108642181d83ad2b8b88e653fe8df796..d1806b5ebf9f5bca61f940bcd9c3a105ee7201f0 100644 (file)
@@ -550,9 +550,7 @@ class Metadata:
             except OSError, e:
                 if e.errno == errno.EACCES:
                     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.
+                elif e.errno in (errno.ENOTTY, errno.ENOSYS, errno.EOPNOTSUPP):
                     # Assume filesystem doesn't support attrs.
                     return
                 else: