diff options
Diffstat (limited to 'extras/quota/quota_fsck.py')
-rwxr-xr-x | extras/quota/quota_fsck.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/extras/quota/quota_fsck.py b/extras/quota/quota_fsck.py index ea8d638112b..e62f7fc52a3 100755 --- a/extras/quota/quota_fsck.py +++ b/extras/quota/quota_fsck.py @@ -156,13 +156,10 @@ def get_quota_xattr_brick(dpath): xattr_dict = {} xattr_dict['parents'] = {} - for xattr in pairs: + for xattr in pairs[1:]: xattr = xattr.decode("utf-8") xattr_key = xattr.split("=")[0] - if re.search("# file:", xattr_key): - # skip the file comment - continue - elif xattr_key is "": + if xattr_key == "": # skip any empty lines continue elif not re.search("quota", xattr_key): |