[utils] Fix xattr error handling
This commit is contained in:
parent
b19e275d99
commit
bd26441205
2 changed files with 13 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue