IP Library Granted Patent US 11,656,802
Granted Patent B2
US 11,656,802 · App. 17/774,351 · Granted May 23, 2023

Distributed block storage service command processing method, apparatus, device and medium

Inventors: Hui Li (Shandong, CN); Zhanhao Bai (Shandong, CN)
Assignee: INSPUR ELECTRONIC INFORMATION INDUSTRY CO., LTD.
G06F3/0659G06F3/067G06F3/0611G06F3/0619G06F3/0634
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,656,802
App. No.
17/774,351
Granted
May 23, 2023
Kind
B2
Abstract

Disclosed are a distributed block storage service command processing method, apparatus, a device and a medium. The method includes: by means of tgtadm, acquiring a rbd command of a block storage service, parsing the rbd command to obtain a corresponding task parameter, and then transmitting the task parameter to an ISCSI target (S 11 ); by means of tgtd, starting a dedicated thread for processing a task corresponding to the task parameter, and monitoring a real-time processing result of the current task (S 12 ); and returning the real-time processing result to the tgtadm by means of the ISCSI target, whereby the tgtadm displays the real-time processing result on a human-computer interface (S 13 ).

Claims (46)

1. A distributed block storage service command processing method, comprising:

by means of tgtadm, acquiring a rbd command of a block storage service, parsing the rbd command to obtain a corresponding task parameter, and then transmitting the task parameter to an Internet Small Computer System Interface (ISCSI) target;

by means of tgtd, starting a dedicated thread for processing a task corresponding to the task parameter, and monitoring a real-time processing result of the task; and

by means of the ISCSI target, returning the real-time processing result to the tgtadm, whereby the tgtadm displays the real-time processing result on a human-computer interface;

wherein the monitoring a real-time processing result of the task by means of tgtd comprises:

by means of the tgtd, setting a callback function, and transmitting the callback function and the task parameter to the block storage service, whereby the block storage service calls the callback function to return a corresponding real-time processing progress to the tgtd when a target progress state corresponding to the task parameter has an update.

2. The distributed block storage service command processing method according to claim 1 , wherein the transmitting the task parameter to an ISCSI target by means of tgtadm comprises:

transmitting the task parameter to the ISCSI target by means of the tgtadm and on the basis of an Inter-Process Communication (IPC) manner.

3. The distributed block storage service command processing method according to claim 1 , wherein at the same time as the starting, by means of tgtd, a dedicated thread for processing a task corresponding to the task parameter, the method further comprises:

deleting a file descriptor (fd) from epoll monitoring.

4. The distributed block storage service command processing method according to claim 1 , wherein the returning the real-time processing result to the tgtadm by means of the ISCSI target, whereby the tgtadm displays the real-time processing result on a human-computer interface comprises:

by means of the ISCSI target, parsing the corresponding real-time processing progress, calculating a corresponding progress percentage, and then returning the corresponding progress percentage to the tgtadm, whereby the tgtadm converts the corresponding progress percentage into a corresponding progress bar, and displays the corresponding progress bar on the human-computer interface.

5. The distributed block storage service command processing method according to claim 1 , wherein the monitoring a real-time processing result of the task by means of tgtd further comprises:

acquiring an error code of the task by means of the callback function.

6. The distributed block storage service command processing method based on the ISCSI according to claim 1 , wherein the returning the real-time processing result to the tgtadm by means of the ISCSI target comprises:

returning the real-time processing result to the tgtadm by means of the ISCSI target and on the basis of an Inter-Process Communication (IPC) manner.

7. An electronic device, comprising:

a memory configured for storing a computer program; and

a processor configured for executing the computer program to implement a distributed block storage service command processing method, comprising:

by means of tgtadm, acquiring a rbd command of a block storage service, parsing the rbd command to obtain a corresponding task parameter, and then transmitting the task parameter to an Internet Small Computer System Interface (ISCSI) target;

by means of tgtd, starting a dedicated thread for processing a task corresponding to the task parameter, and monitoring a real-time processing result of the task; and

returning the real-time processing result to the tgtadm by means of the ISCSI target, whereby the tgtadm displays the real-time processing result on a human-computer interface;

wherein the monitoring a real-time processing result of the task by means of tgtd comprises:

by means of the tgtd, setting a callback function, and transmitting the callback function and the task parameter to the block storage service, whereby the block storage service calls the callback function to return a corresponding real-time processing progress to the tgtd when a target progress state corresponding to the task parameter has an update.

8. The electronic device according to claim 7 , wherein the transmitting the task parameter to an ISCSI target by means of tgtadm comprises:

transmitting the task parameter to the ISCSI target by means of the tgtadm and on the basis of an Inter-Process Communication (IPC) manner.

9. The electronic device according to claim 7 , wherein the returning the real-time processing result to the tgtadm by means of the ISCSI target comprises:

returning the real-time processing result to the tgtadm by means of the ISCSI target and on the basis of an Inter-Process Communication (IPC) manner.

10. The electronic device according to claim 7 , wherein at the same time as the starting, by means of tgtd, a dedicated thread for processing a task corresponding to the task parameter, the method further comprises:

deleting a file descriptor (fd) from epoll monitoring.

11. The electronic device according to claim 7 , wherein the returning the real-time processing result to the tgtadm by means of the ISCSI target, whereby the tgtadm displays the real-time processing result on a human-computer interface comprises:

by means of the ISCSI target, parsing the corresponding real-time processing progress, calculating a corresponding progress percentage, and then returning the corresponding progress percentage to the tgtadm, whereby the tgtadm converts the corresponding progress percentage into a corresponding progress bar, and displays the corresponding progress bar on the human-computer interface.

12. The electronic device according to claim 7 , wherein the monitoring a real-time processing result of the task by means of tgtd further comprises:

acquiring an error code of the task by means of the callback function.

13. A non-transitory computer-readable storage medium, being configured for storing a computer program to implement a distributed block storage service command processing method, comprising:

by means of tgtadm, acquiring a rbd command of a block storage service, parsing the rbd command to obtain a corresponding task parameter, and then transmitting the task parameter to an Internet Small Computer System Interface (ISCSI) target;

by means of tgtd, starting a dedicated thread for processing a task corresponding to the task parameter, and monitoring a real-time processing result of the task; and

returning the real-time processing result to the tgtadm by means of the ISCSI target, whereby the tgtadm displays the real-time processing result on a human-computer interface;

wherein the monitoring a real-time processing result of the task by means of tgtd comprises:

by means of the tgtd, setting a callback function, and transmitting the callback function and the task parameter to the block storage service, whereby the block storage service calls the callback function to return a corresponding real-time processing progress to the tgtd when a target progress state corresponding to the task parameter has an update.

14. The non-transitory computer-readable storage medium according to claim 13 , wherein the transmitting the task parameter to an ISCSI target by means of tgtadm comprises:

transmitting the task parameter to the ISCSI target by means of the tgtadm and on the basis of an Inter-Process Communication (IPC) manner.

15. The non-transitory computer-readable storage medium according to claim 13 , wherein the returning the real-time processing result to the tgtadm by means of the ISCSI target comprises:

returning the real-time processing result to the tgtadm by means of the ISCSI target and on the basis of an IPC (Inter-Process Communication) manner.

16. The non-transitory computer-readable storage medium according to claim 15 , wherein at the same time as the starting, by means of tgtd, a dedicated thread for processing a task corresponding to the task parameter, the method further comprises:

deleting a file descriptor (fd) from epoll monitoring.

Assignments (2)
LICENSE Recorded Jun 30, 2026
From: IEIT SYSTEMS CO., LTD
To: AIVRES SYSTEMS INC.
Reel/Frame 075857/0939 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 11, 2022
From: LI, HUI; BAI, ZHANHAO
To: INSPUR ELECTRONIC INFORMATION INDUSTRY CO., LTD.
Reel/Frame 059940/0231 →
Priority Claims (1)
CN 201911384349.9 · Dec 28, 2019 · national
Continuity (1)
Related Publication 20220300209A1 · Sep 22, 2022