Add EOPNOTSUPP to the set of errno values in _add_linux_attr() that
indicate Linux attrs are not supported by the target filesystem. The
problem was observed on ZFS-on-Linux, 0.6.2.
Thanks to Will Rouesnel <w.rouesnel@gmail.com> for the report and an
initial patch.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
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: