[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
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