[sheepdog] [PATCH 2/2] sheep: reorder cluste opertions into proper place
Liu Yuan
namei.unix at gmail.com
Wed May 29 06:59:21 CEST 2013
Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
sheep/ops.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/sheep/ops.c b/sheep/ops.c
index 145252e..9a96fc1 100644
--- a/sheep/ops.c
+++ b/sheep/ops.c
@@ -1127,6 +1127,18 @@ static struct sd_op_template sd_ops[] = {
.process_main = cluster_update_size,
},
+ [SD_OP_ENABLE_RECOVER] = {
+ .name = "ENABLE_RECOVER",
+ .type = SD_OP_TYPE_CLUSTER,
+ .process_main = cluster_enable_recover,
+ },
+
+ [SD_OP_DISABLE_RECOVER] = {
+ .name = "DISABLE_RECOVER",
+ .type = SD_OP_TYPE_CLUSTER,
+ .process_main = cluster_disable_recover,
+ },
+
/* local operations */
[SD_OP_RELEASE_VDI] = {
.name = "RELEASE_VDI",
@@ -1305,18 +1317,6 @@ static struct sd_op_template sd_ops[] = {
.type = SD_OP_TYPE_PEER,
.process_work = peer_remove_obj,
},
-
- [SD_OP_ENABLE_RECOVER] = {
- .name = "ENABLE_RECOVER",
- .type = SD_OP_TYPE_CLUSTER,
- .process_main = cluster_enable_recover,
- },
-
- [SD_OP_DISABLE_RECOVER] = {
- .name = "DISABLE_RECOVER",
- .type = SD_OP_TYPE_CLUSTER,
- .process_main = cluster_disable_recover,
- },
};
const struct sd_op_template *get_sd_op(uint8_t opcode)
--
1.7.9.5
More information about the sheepdog
mailing list