Data file repair method and device and computer-readable storage medium

A data file and repair method technology, which is applied in the direction of calculation, electrical digital data processing, and redundant data error detection in calculations, can solve the problems that data files cannot be repaired in real time, so as to improve safety and reliability, The effect of simplifying the repair process and improving stability and security

Active Publication Date: 2019-03-05
ZTE CORP
View PDF6 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention is to provide a data file repair method, device and computer-readable storage medium to overcome the defect that the damaged data file cannot be repaired in real time in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data file repair method and device and computer-readable storage medium
  • Data file repair method and device and computer-readable storage medium
  • Data file repair method and device and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0037] In the first embodiment of the present invention, a data file repair method, such as figure 1 shown, including the following specific steps:

[0038] Step S101, when receiving an access instruction of a data file, detect whether the data file is damaged.

[0039] Step S102, in the case of detecting that the data file is damaged, access the preset first copy file corresponding to the data file, and restore the data file through the first copy file.

[0040] Wherein, the quantity of the first copy file is one or more.

[0041] Optionally, step S102 includes:

[0042] The number of first copy files is one;

[0043] In the case of detecting that the data file is damaged, the preset first copy file corresponding to the data file is accessed, and the data file is repaired through the first copy file.

[0044] Optionally, step S102 includes:

[0045] The number of first copy files is multiple;

[0046] In the case of detecting that the data file is damaged, determine the...

no. 2 example

[0055] In the second embodiment of the present invention, a data file repair method, such as figure 2 shown, including the following specific steps:

[0056] In step S201, when an access instruction of a data file is received, it is detected whether the data file is damaged.

[0057] Optionally, step S201 includes:

[0058] Map the physical handle of the data file and the physical handle of the preset first copy file corresponding to the data file to a virtual handle;

[0059] When receiving the access command of the data file, the data file is detected based on the physical handle of the data file corresponding to the virtual handle.

[0060] Wherein, the quantity of the first copy file is one or more.

[0061] Based on the virtual handle, to access the data file and / or the first copy file, the software at the application layer cannot perceive the difference between the virtual handle and the actual physical handle, and the software at the application layer still operates t...

no. 3 example

[0114] In the third embodiment of the present invention, a data file repair device, such as image 3 shown, including the following components:

[0115] Processor 501 and memory 502. In some embodiments of the present invention, the processor 501 and the memory 502 may be connected through a bus or in other ways.

[0116] The processor 501 may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU), and may also be a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (English: Application Specific Integrated Circuit, ASIC), Or one or more integrated circuits configured to implement embodiments of the invention. Wherein, the memory 502 is used to store executable instructions of the processor 501;

[0117]The memory 502 is used to store program codes and transmit the program codes to the processor 501 . The memory 502 may include a volatile memory (Volatile Memory), such as a Random A...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method for repairing a data file, which comprises the following steps of detecting whether the data file is damaged or not when an access instruction of the data file is received; in the case of detecting corruption of the data file, accessing a first copy file corresponding to the data file, and repairing the data file through the first copy file. The invention also discloses a data file repairing device and a computer readable storage medium. By implementing the scheme, the damaged data files can be repaired automatically in real time, the repair flow of the data files is simplified, the stability and security of the file system storing the data files are improved, and the security and reliability of accessing the data files by the application layer software areimproved.

Description

technical field [0001] The invention relates to the technical field of data storage, in particular to a data file restoration method, device and computer-readable storage medium. Background technique [0002] Data storage is one of the most basic functions of computer software, especially the current big data, cloud storage, database software, etc. are inseparable from the most basic data storage. At present, large-capacity data file storage is mainly stored by mechanical disks. Due to its mechanical characteristics, it is easy to cause damage or loss of stored data files. There is also a problem with the underlying link switching network, such as SAS (Serial Attached SCSI , Serial SCSI) line. Once the data file is damaged or lost, it may cause the kernel file system to be abnormal, and it may also cause the error handling or application exception of the upper layer application. For example, in the video application, the damage or loss of the audio and video data file will ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/14
CPCG06F11/1415
Inventor 陈安庆罗文斌张磊
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products