[utils] Fix xattr error handling

This commit is contained in:
Yen Chi Hsuan 2016-10-02 03:03:41 +08:00
parent b19e275d99
commit bd26441205
No known key found for this signature in database
GPG key ID: 3FDDD575826C5C30
2 changed files with 13 additions and 4 deletions

View file

@ -782,6 +782,7 @@ class XAttrMetadataError(Exception):
def __init__(self, code=None, msg='Unknown error'):
super(XAttrMetadataError, self).__init__(msg)
self.code = code
self.msg = msg
# Parsing code and msg
if (self.code in (errno.ENOSPC, errno.EDQUOT) or