!130 detection storage interface
From: @xuezhizone Reviewed-by: @xingwei-liu Signed-off-by: @xingwei-liu
This commit is contained in:
commit
030a98b488
38
0076-detection-storage-interface.patch
Normal file
38
0076-detection-storage-interface.patch
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
From 6b30dd600fa78f0ee91762b8ca450a96e1ede0b0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: lixin <lixinb@uniontech.com>
|
||||||
|
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
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: migration-tools
|
Name: migration-tools
|
||||||
Version: 1.0.2
|
Version: 1.0.2
|
||||||
Release: 75
|
Release: 76
|
||||||
License: MulanPSL-2.0
|
License: MulanPSL-2.0
|
||||||
Summary: A tool to help users migrate the Centos system to the UOS system and openEuler system
|
Summary: A tool to help users migrate the Centos system to the UOS system and openEuler system
|
||||||
Source0: %{name}-%{version}.tar.gz
|
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
|
Patch73: 0073-get-os-version-and-os-id.patch
|
||||||
Patch74: 0074-detection-basic-system-information.patch
|
Patch74: 0074-detection-basic-system-information.patch
|
||||||
Patch75: 0075-detection-basic-information-and-format-abi-compatibility-information-to-report.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
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 5 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.2-76
|
||||||
|
- 0076-detection-storage-interface.patch
|
||||||
|
|
||||||
* Tue Nov 5 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.2-75
|
* Tue Nov 5 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.2-75
|
||||||
- 0075-detection-basic-information-and-format-abi-compatibility-information-to-report.patch
|
- 0075-detection-basic-information-and-format-abi-compatibility-information-to-report.patch
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user