From: Rob Browning Date: Sun, 12 Jun 2011 16:33:57 +0000 (-0500) Subject: On ENOTTY or ENOSYS, assume filesystem doesn't support Linux attributes. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9f874f5a9d860f695691ddaf6e5a05f7a5894e82;p=packages%2Fb%2Fbup.git On ENOTTY or ENOSYS, assume filesystem doesn't support Linux attributes. Signed-off-by: Rob Browning Reviewed-by: Zoran Zaric --- diff --git a/lib/bup/metadata.py b/lib/bup/metadata.py index 61df9fb..f4b5847 100644 --- a/lib/bup/metadata.py +++ b/lib/bup/metadata.py @@ -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