@tony-yin
2018-02-05T10:51:00.000000Z
字数 607
阅读 862
Ceph
在此输入正文
get_cmd -> do_list -> RBD::list -> librbd::list (read RBD_DIRECTORY)
main -> rados_tool_common -> option("ls") -> rados.ioctx_create -> rados_ioctx_create ->
io_ctx.nobjects_begin() -> iter.get_next() -> impl->get_next() -> rados_nobjects_list_next() ->
librados::IoCtxImpl::nlist() ->
Objecter::list_nobjects ->
add CEPH_OSD_OP_PGNLS to op
path: src/msg/simple/SimpleMessenger.cc
Objecter.cc
path: PGBackend.cc