From 32aa59bb806bc689ee267476b518682d53d0d106 Mon Sep 17 00:00:00 2001 From: xuezhixin Date: Thu, 7 Nov 2024 18:14:06 +0800 Subject: [PATCH] detection storage interface --- 0076-detection-storage-interface.patch | 38 ++++++++++++++++++++++++++ migration-tools.spec | 6 +++- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 0076-detection-storage-interface.patch diff --git a/0076-detection-storage-interface.patch b/0076-detection-storage-interface.patch new file mode 100644 index 0000000..0c627ad --- /dev/null +++ b/0076-detection-storage-interface.patch @@ -0,0 +1,38 @@ +From 6b30dd600fa78f0ee91762b8ca450a96e1ede0b0 Mon Sep 17 00:00:00 2001 +From: lixin +Date: Mon, 13 Nov 2023 14:06:04 +0800 +Subject: [PATCH] =?UTF-8?q?=E5=AD=98=E5=82=A8=E7=A9=BA=E9=97=B4=E6=A3=80?= + =?UTF-8?q?=E6=B5=8B=E6=8E=A5=E5=8F=A3?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +--- + index.py | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +diff --git a/index.py b/index.py +index d9a564b..6b3b3d7 100644 +--- a/index.py ++++ b/index.py +@@ -180,6 +180,17 @@ def get_repo_arch_info(): + return Response(mod, content_type='application/json') + + ++@app.route('/get_storage_num', methods=['GET', 'POST']) ++def get_storage_num(): ++ """ ++ 获取可用空间足够和不足数量 ++ :return: ++ """ ++ mod = check_methods() ++ if mod: ++ return Response(mod, content_type='application/json') ++ ++ + @app.route('/', methods=['GET', 'POST']) + def MT_index(): + """ +-- +2.20.1 + diff --git a/migration-tools.spec b/migration-tools.spec index 49b7b6a..9a2bc9a 100644 --- a/migration-tools.spec +++ b/migration-tools.spec @@ -1,6 +1,6 @@ Name: migration-tools Version: 1.0.2 -Release: 75 +Release: 76 License: MulanPSL-2.0 Summary: A tool to help users migrate the Centos system to the UOS system and openEuler system Source0: %{name}-%{version}.tar.gz @@ -82,6 +82,7 @@ Patch72: 0072-count-the-total-number-of-abi-compatible-lists.patch Patch73: 0073-get-os-version-and-os-id.patch Patch74: 0074-detection-basic-system-information.patch Patch75: 0075-detection-basic-information-and-format-abi-compatibility-information-to-report.patch +Patch76: 0076-detection-storage-interface.patch @@ -182,6 +183,9 @@ rm -rf /usr/bin/migration-tools %endif %changelog +* Tue Nov 5 2024 xuezhixin - 1.0.2-76 +- 0076-detection-storage-interface.patch + * Tue Nov 5 2024 xuezhixin - 1.0.2-75 - 0075-detection-basic-information-and-format-abi-compatibility-information-to-report.patch -- Gitee