Example Analysis of ceph client Command Line
Editor to share with you the ceph client command line example analysis, I hope you will learn something after reading this article, let's discuss it together!
# include
# include
/ / # include
# include
# include
# include
# include
# include
# define EXIT_SUCCESS 0
Using namespace std
Using namespace librados
Int main (int argc, char * * argv)
{
Rados rados
Rados_ioctx_t io
Const char * poolname = "data"
Const char cluster_name [] = "ceph"
Const char user_name [] = "client.admin"; / / user name
Uint64_t flags=0
Char xattr [] = "en_US"
Int err
Char fsid [50] = {0}
Err= rados.init2 (user_name,cluster_name, flags)
If (err