ceph_hooks.py 文件源码

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

项目:charm-ceph 作者: openstack 项目源码 文件源码
def use_short_objects():
    '''
    Determine whether OSD's should be configured with
    limited object name lengths.

    @return: boolean indicating whether OSD's should be limited
    '''
    if cmp_pkgrevno('ceph', "10.2.0") >= 0:
        if config('osd-format') in ('ext4'):
            return True
        for device in config('osd-devices'):
            if not device.startswith('/dev'):
                # TODO: determine format of directory based
                #       OSD location
                return True
    return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号