Get the App
SLTechnology News&Howtos  ›  Servers  › 

Example Analysis of ceph client Command Line

Shulou Source: shulou.com Published: 2022-06-01 02:55:42 10月04日 Update

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

Tags: Commands clients clients examples analysis articles handles done documents more users user names knowledge industry information information channels channels configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Redmi Shulou Tech Info Xiaomi OPPO Reno