US 11,656,802 B2
Distributed block storage service command processing method, apparatus, device and medium
Hui Li, Shandong (CN); and Zhanhao Bai, Shandong (CN)
Assigned to INSPUR ELECTRONIC INFORMATION INDUSTRY CO., LTD., Shandong (CN)
Appl. No. 17/774,351
Filed by INSPUR ELECTRONIC INFORMATION INDUSTRY CO., LTD., Shandong (CN)
PCT Filed Aug. 21, 2020, PCT No. PCT/CN2020/110412
§ 371(c)(1), (2) Date May 4, 2022,
PCT Pub. No. WO2021/128889, PCT Pub. Date Jul. 1, 2021.
Claims priority of application No. 201911384349.9 (CN), filed on Dec. 28, 2019.
Prior Publication US 2022/0300209 A1, Sep. 22, 2022
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/0659 (2013.01) [G06F 3/067 (2013.01); G06F 3/0611 (2013.01); G06F 3/0619 (2013.01); G06F 3/0634 (2013.01)] 16 Claims
OG exemplary drawing
 
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.