gfid.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:glustertool 作者: gluster 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号