[关闭]
@tony-yin 2018-02-05T10:51:00.000000Z 字数 607 阅读 862

Ceph pool

Ceph


在此输入正文

rbd ls

get_cmd -> do_list -> RBD::list -> librbd::list (read RBD_DIRECTORY)

rados ls

rados.cc

main -> rados_tool_common -> option("ls") -> rados.ioctx_create -> rados_ioctx_create ->

librados.cc

io_ctx.nobjects_begin() -> iter.get_next() -> impl->get_next() -> rados_nobjects_list_next() ->

IoCtxImpl.cc

librados::IoCtxImpl::nlist() ->

Objecter.cc

Objecter::list_nobjects ->

Objecter.h

pg_nls()

add CEPH_OSD_OP_PGNLS to op

Osd_types.h

object_locator_t

Objecter.h

pg_read

  1. prepare_pg_read_op

op_submit

_op_submit_with_budget

_op_submit

get_connection

path: src/msg/simple/SimpleMessenger.cc

_send_op

Objecter.cc

objects_list_partial

path: PGBackend.cc

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注