Ceph 源代码分析 -librados

时间:2024-04-14 13:40:11

librados 的模块式在客户端用来访问 rados对象存储设备的, 其结构图如下:

Ceph 源代码分析 -librados


如上图所示,各个模块的架构图。

librados就是 操作 rados 对象存储的接口。 其接口分为两种:一个是c 接口,其定义在include/rados/librados.h 中。 一个是 c++ 接口,定义在include/rados/librados.hpp中,其实现都在librados.cc中实现。 其具体的接口可以参考上述头文件,其都有详细的注释说明。

转载于:https://my.oschina.net/guyson/blog/325838