• A
    libceph: rename ceph_calc_object_layout() · 41766f87
    Alex Elder 提交于
    The purpose of ceph_calc_object_layout() is to fill in the pool
    number and seed for a ceph_pg structure provided, based on a given
    osd map and target object id.
    
    Currently that function takes a file layout parameter, but the only
    thing used out of that is its pool number.
    
    Change the function so it takes a pool number rather than the full
    file layout structure.  Only update the ceph_pg if the pool is found
    in the osd map.  Get rid of few useless lines of code from the
    function while there.
    
    Since the function now very clearly just fills in the ceph_pg
    structure it's provided, rename it ceph_calc_ceph_pg().
    Signed-off-by: NAlex Elder <elder@inktank.com>
    Reviewed-by: NJosh Durgin <josh.durgin@inktank.com>
    41766f87
osd_client.c 57.0 KB