From: Josh Durgin Date: Thu, 4 Feb 2016 20:15:00 +0000 (-0800) Subject: librbd: rename rbd_pool_settings object to rbd_mirroring X-Git-Tag: v10.1.0~316^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=da9b36a70ddefa62eb8469c8faa706fb06c15c7b;p=ceph.git librbd: rename rbd_pool_settings object to rbd_mirroring We'll use this object only for mirroring-related purposes, not generic settings on a pool. Refs: #14419 Signed-off-by: Josh Durgin --- diff --git a/src/cls/rbd/cls_rbd_client.cc b/src/cls/rbd/cls_rbd_client.cc index b2aee96a568..f34c731db59 100644 --- a/src/cls/rbd/cls_rbd_client.cc +++ b/src/cls/rbd/cls_rbd_client.cc @@ -972,7 +972,7 @@ namespace librbd { cls::rbd::MirrorMode *mirror_mode) { bufferlist in_bl; bufferlist out_bl; - int r = ioctx->exec(RBD_POOL_SETTINGS, "rbd", "mirror_mode_get", in_bl, + int r = ioctx->exec(RBD_MIRRORING, "rbd", "mirror_mode_get", in_bl, out_bl); if (r == -ENOENT) { *mirror_mode = cls::rbd::MIRROR_MODE_DISABLED; @@ -998,7 +998,7 @@ namespace librbd { ::encode(static_cast(mirror_mode), in_bl); bufferlist out_bl; - int r = ioctx->exec(RBD_POOL_SETTINGS, "rbd", "mirror_mode_set", in_bl, + int r = ioctx->exec(RBD_MIRRORING, "rbd", "mirror_mode_set", in_bl, out_bl); if (r < 0) { return r; @@ -1010,7 +1010,7 @@ namespace librbd { std::vector *peers) { bufferlist in_bl; bufferlist out_bl; - int r = ioctx->exec(RBD_POOL_SETTINGS, "rbd", "mirror_peer_list", in_bl, + int r = ioctx->exec(RBD_MIRRORING, "rbd", "mirror_peer_list", in_bl, out_bl); if (r < 0) { return r; @@ -1034,7 +1034,7 @@ namespace librbd { ::encode(peer, in_bl); bufferlist out_bl; - int r = ioctx->exec(RBD_POOL_SETTINGS, "rbd", "mirror_peer_add", in_bl, + int r = ioctx->exec(RBD_MIRRORING, "rbd", "mirror_peer_add", in_bl, out_bl); if (r < 0) { return r; @@ -1048,7 +1048,7 @@ namespace librbd { ::encode(uuid, in_bl); bufferlist out_bl; - int r = ioctx->exec(RBD_POOL_SETTINGS, "rbd", "mirror_peer_remove", in_bl, + int r = ioctx->exec(RBD_MIRRORING, "rbd", "mirror_peer_remove", in_bl, out_bl); if (r < 0) { return r; @@ -1064,7 +1064,7 @@ namespace librbd { ::encode(client_name, in_bl); bufferlist out_bl; - int r = ioctx->exec(RBD_POOL_SETTINGS, "rbd", "mirror_peer_set_client", + int r = ioctx->exec(RBD_MIRRORING, "rbd", "mirror_peer_set_client", in_bl, out_bl); if (r < 0) { return r; @@ -1080,7 +1080,7 @@ namespace librbd { ::encode(cluster_name, in_bl); bufferlist out_bl; - int r = ioctx->exec(RBD_POOL_SETTINGS, "rbd", "mirror_peer_set_cluster", + int r = ioctx->exec(RBD_MIRRORING, "rbd", "mirror_peer_set_cluster", in_bl, out_bl); if (r < 0) { return r; diff --git a/src/include/rbd_types.h b/src/include/rbd_types.h index 6ac5ed0033f..3dfb37af3f2 100644 --- a/src/include/rbd_types.h +++ b/src/include/rbd_types.h @@ -59,11 +59,10 @@ #define RBD_LOCK_NAME "rbd_lock" /** - * rbd_pool_settings object in each pool contains pool-specific settings - * for configuring features such as async image mirroring to other Ceph - * clusters. + * rbd_mirroring object in each pool contains pool-specific settings + * for configuring mirroring. */ -#define RBD_POOL_SETTINGS "rbd_pool_settings" +#define RBD_MIRRORING "rbd_mirroring" #define RBD_MAX_OBJ_NAME_SIZE 96 #define RBD_MAX_BLOCK_NAME_SIZE 24