US 12,111,742 B2
Method for log recording, electronic device and non-transitory computer-readable storage medium
Guohua Liu, Jiangsu (CN)
Assigned to SUZHOU METABRAIN INTELLIGENT TECHNOLOGY CO., LTD., Suzhou (CN)
Appl. No. 18/692,281
Filed by SUZHOU METABRAIN INTELLIGENT TECHNOLOGY CO., LTD., Jiangsu (CN)
PCT Filed Sep. 29, 2022, PCT No. PCT/CN2022/122868
§ 371(c)(1), (2) Date Mar. 14, 2024,
PCT Pub. No. WO2023/071701, PCT Pub. Date May 4, 2023.
Claims priority of application No. 202111251548.X (CN), filed on Oct. 26, 2021.
Prior Publication US 2024/0264918 A1, Aug. 8, 2024
Int. Cl. G06F 11/00 (2006.01); G06F 1/30 (2006.01); G06F 11/20 (2006.01); G06F 11/30 (2006.01)
CPC G06F 11/3034 (2013.01) [G06F 1/30 (2013.01); G06F 11/2015 (2013.01); G06F 11/3065 (2013.01)] 18 Claims
OG exemplary drawing
 
1. A method for log recording applied to a storage device, wherein, a storage space of the storage device has at least two storage areas, and the at least two storage areas comprises at least one first storage area for storing data by using a serial writing mode and at least one second storage area for storing the data by using a parallel writing mode, the method comprises:
monitoring an operating state of a system of the storage device;
in response to the operating state of the system of the storage device being normal, storing generated log data in the first storage area; and
in response to the system of the storage device being abnormally powered off, switching an emergency power supply to supply power for the storage device and controlling a log data storage operation of the second storage area in response to abnormal power-off;
wherein in response to the system of the storage device being abnormally powered off, switching the emergency power supply to supply power for the storage device and controlling the log data storage operation of the second storage area in response to the abnormal power-off comprises:
in response to the system of the storage device being abnormally powered off, switching the emergency power supply to supply power for the storage device and responding to a timing operation; and
in response to a power-off process of the system being not completed within a target duration, storing the generated log data in the second storage area.