From a4ddd4078a31aadff3d4719aaf80d1b90c961225 Mon Sep 17 00:00:00 2001 From: lizhao Date: Wed, 8 Jan 2025 15:25:05 +0800 Subject: [PATCH 1/2] add ClearPtnInfo func Signed-off-by: lizhao --- services/ptable_parse/ptable.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/ptable_parse/ptable.h b/services/ptable_parse/ptable.h index 01a74a95..46956bcc 100644 --- a/services/ptable_parse/ptable.h +++ b/services/ptable_parse/ptable.h @@ -89,6 +89,11 @@ public: return hasTailpart_; } + bool ClearPtnInfo() + { + partitionInfo_.clear(); + } + #ifndef UPDATER_UT protected: #else -- Gitee From 4ddd0ad6477b71792a6c13f387f67526edfcb65c Mon Sep 17 00:00:00 2001 From: lizhao Date: Fri, 10 Jan 2025 16:46:59 +0800 Subject: [PATCH 2/2] fix Signed-off-by: lizhao --- services/ptable_parse/ptable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/ptable_parse/ptable.h b/services/ptable_parse/ptable.h index 46956bcc..d49aefbe 100644 --- a/services/ptable_parse/ptable.h +++ b/services/ptable_parse/ptable.h @@ -89,7 +89,7 @@ public: return hasTailpart_; } - bool ClearPtnInfo() + void ClearPtnInfo() { partitionInfo_.clear(); } -- Gitee