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: