def get_gfid(path):
try:
return uuid.UUID(bytes=xattr.get(path, "trusted.gfid",
nofollow=True))
except (IOError, OSError) as e:
if e.errno == ENODATA:
return uuid.UUID(bytes=xattr.get(path, "glusterfs.gfid",
nofollow=True))
else:
raise
评论列表
文章目录