6 Star 0 Fork 6

src-openEuler/drbd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-DRBDmon-DisplayController-Add-peer-volume-details-ac.patch 3.23 KB
一键复制 编辑 原始数据 按行查看 历史
From 04c75fead86336069593203cc33eadd63767f77a Mon Sep 17 00:00:00 2001
From: Robert Altnoeder <robert.altnoeder@linbit.com>
Date: Thu, 15 Feb 2024 16:23:49 +0100
Subject: [PATCH 063/100] DRBDmon: DisplayController: Add peer volume details &
actions displays
---
user/drbdmon/terminal/DisplayController.cpp | 12 ++++++++++++
user/drbdmon/terminal/DisplayController.h | 2 ++
2 files changed, 14 insertions(+)
diff --git a/user/drbdmon/terminal/DisplayController.cpp b/user/drbdmon/terminal/DisplayController.cpp
index 9bce92d0..26f67790 100644
--- a/user/drbdmon/terminal/DisplayController.cpp
+++ b/user/drbdmon/terminal/DisplayController.cpp
@@ -13,6 +13,8 @@
#include <terminal/MDspConnectionDetail.h>
#include <terminal/MDspConnectionActions.h>
#include <terminal/MDspPeerVolumes.h>
+#include <terminal/MDspPeerVolumeDetail.h>
+#include <terminal/MDspPeerVolumeActions.h>
#include <terminal/MDspTaskQueue.h>
#include <terminal/MDspTaskDetail.h>
#include <terminal/MDspHelpIndex.h>
@@ -152,6 +154,12 @@ DisplayController::DisplayController(
peer_volume_view_mgr = std::unique_ptr<ModularDisplay>(
dynamic_cast<ModularDisplay*> (new MDspPeerVolumes(dsp_comp_hub))
);
+ peer_volume_detail_mgr = std::unique_ptr<ModularDisplay>(
+ dynamic_cast<ModularDisplay*> (new MDspPeerVolumeDetail(dsp_comp_hub))
+ );
+ peer_volume_actions_mgr = std::unique_ptr<ModularDisplay>(
+ dynamic_cast<ModularDisplay*> (new MDspPeerVolumeActions(dsp_comp_hub))
+ );
active_tasks_mgr = std::unique_ptr<ModularDisplay>(
dynamic_cast<ModularDisplay*> (
new MDspTaskQueue(
@@ -697,6 +705,7 @@ void DisplayController::get_display(
dsp_obj = peer_volume_view_mgr.get();
break;
case DisplayId::display_page::PEER_VLM_DETAIL:
+ dsp_obj = peer_volume_detail_mgr.get();
break;
case DisplayId::display_page::MAIN_MENU:
dsp_obj = main_menu_mgr.get();
@@ -739,6 +748,9 @@ void DisplayController::get_display(
case DisplayId::display_page::CON_ACTIONS:
dsp_obj = connection_actions_mgr.get();
break;
+ case DisplayId::display_page::PEER_VLM_ACTIONS:
+ dsp_obj = peer_volume_actions_mgr.get();
+ break;
case DisplayId::display_page::PGM_INFO:
dsp_obj = pgm_info_mgr.get();
break;
diff --git a/user/drbdmon/terminal/DisplayController.h b/user/drbdmon/terminal/DisplayController.h
index 294b22b5..6c758ba2 100644
--- a/user/drbdmon/terminal/DisplayController.h
+++ b/user/drbdmon/terminal/DisplayController.h
@@ -121,6 +121,8 @@ class DisplayController : public GenericDisplay, public DisplaySelector
std::unique_ptr<ModularDisplay> connection_detail_mgr;
std::unique_ptr<ModularDisplay> connection_actions_mgr;
std::unique_ptr<ModularDisplay> peer_volume_view_mgr;
+ std::unique_ptr<ModularDisplay> peer_volume_detail_mgr;
+ std::unique_ptr<ModularDisplay> peer_volume_actions_mgr;
std::unique_ptr<ModularDisplay> active_tasks_mgr;
std::unique_ptr<ModularDisplay> pending_tasks_mgr;
std::unique_ptr<ModularDisplay> suspended_tasks_mgr;
--
2.33.1.windows.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/drbd.git
git@gitee.com:src-openeuler/drbd.git
src-openeuler
drbd
drbd
master

搜索帮助