Method and device for organizing and repairing indexes of files

A file index and file technology, applied in the field of file index organization and repair, can solve the problems of lost files, the file index file system can no longer be accessed, the structure is complicated, etc., to achieve the effect of improving efficiency

Active Publication Date: 2014-12-24
SHENZHEN STREAMING VIDEO TECH
View PDF5 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The loss of the file index will cause the file system to no longer be able to access the corresponding file, which is equivalent to losing the file
[0003] During the operation of the file system, the index data will be updated frequently. If the environment is unstable, such as in the vehicle environment, jitter, electromagnetic oscillation, or power failure occurs frequently, the index update process is more likely to be interrupted or the data is in the process of transmission. polluted
In such environments, the data integrity of the index is easily compromised
[0004] On the one hand, if the index is destroyed, the existing files will be lost; on the other hand, after the upper-layer application reads the abnormal index value, it will interrupt the operation because there is no corresponding processing flow. For example, the file system used in the field of video surveillance must be able to Only by quickly repairing the damaged index can the uninterrupted recording and recording not be lost
[0005] The existing file system generally adopts the index organization mechanism of directory hierarchical results, which has a complex structure and is difficult to rebuild
When the index is damaged, you can only use offline tools to complete the repair by traversing the files on the entire hard disk to rebuild the index, and it is impossible to achieve fast online automatic repair

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
  • Method and device for organizing and repairing indexes of files
  • Method and device for organizing and repairing indexes of files
  • Method and device for organizing and repairing indexes of files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] Embodiment 1 of the present invention provides a method for file index organization and repair, see figure 1 The method for file index organization and repair includes the following steps:

[0030] 101. Construct all files in the storage medium into a doubly linked list, and the doubly linked list includes a forward linked list and a backward linked list.

[0031] 102. Store the indexes of all files in the index information set, and back up the corresponding indexes in each file.

[0032] 103. During the process of accessing a file, if the index of the file in the index information set does not match the backup index of the file, repair the doubly linked list.

[0033] 104. Rebuild the indexes of all files according to the repaired doubly linked list.

[0034] For example, there are 5 files in the hard disk, and the 5 files form a doubly linked list, and the doubly linked list includes a forward linked list and a backward linked list; the indexes of the 5 files are st...

Embodiment 2

[0037] Embodiment 2 of the present invention provides a method for file index organization and repair, see figure 2 The method for file index organization and repair includes the following steps:

[0038] 201. Add a forward pointer and a backward pointer to each file, the forward pointer points to the address of the previous file to form a forward linked list, and the backward pointer points to the address of the next file to form a backward linked list. Such as image 3 As shown, the above-mentioned forward linked list 32 and the above-mentioned backward linked list 31 are circular; as Figure 4 As shown, the previous file of the first file (file 1) in the backward linked list is the last file (file 5), and the backward linked list is directed to file 4 by file 5, and file 4 points to file 3, and file 3 points to file 2. File 2 points to file 1, and file 1 points to file 5 to form a circular linked list; Figure 5 As shown, the last file (file 5) in the forward link list ...

Embodiment 3

[0054] Embodiment 3 of the present invention provides a device for file index organization and repair, such as Figure 7 As shown, the device 30 for file index organization and repair includes a configuration module 310 , a storage backup module 320 , a repair module 330 and a reconstruction module 340 .

[0055] Constructing module 310, configured to form a doubly linked list of all files in the storage medium, the doubly linked list includes a forward linked list and a backward linked list;

[0056] The storage backup module 320 is used to store the indexes of all files into the index information set, and back up its corresponding indexes in each file;

[0057] The repair module 330 is used to repair the doubly linked list if the index of the file in the index information set does not match the backup index of the file during the access file process;

[0058] The reconstruction module 340 is configured to rebuild indexes of all files according to the repaired doubly linked ...

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 and a device for organizing and repairing indexes of files, and belongs to the field of data storage methods. The method comprises the steps of firstly establishing a ring-shaped bidirectional chain table by all files in a storage medium, wherein the bidirectional chain table comprises a front direction chain table and a rear direction chain table; indexing all the stored files to an index information set, and backing up a corresponding index in each file; then in a file accessing process, when the indexes of the files in the index information set are not matched with the backup indexes of the files, repairing the bidirectional chain table; finally, reestablishing the indexes of all the files according to the repaired bidirectional chain table. According to the method and the device for organizing and repairing the indexes of the files, the efficiency of reestablishing the indexes of the files is improved.

Description

technical field [0001] The invention relates to the field of data storage methods, in particular to a method and device for file index organization and restoration. Background technique [0002] The file system implements file management based on the index, and locates the file through the index. The loss of the file index will cause the file system to no longer be able to access the corresponding file, which is equivalent to losing the file. [0003] During the operation of the file system, the index data will be updated frequently. If the environment is unstable, such as in the vehicle environment, jitter, electromagnetic oscillation, or power failure occurs frequently, the index update process is more likely to be interrupted or the data is in the process of transmission. polluted. In such environments, the data integrity of the index can be easily compromised. [0004] On the one hand, if the index is destroyed, the existing files will be lost; on the other hand, afte...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30G06F11/14
CPCG06F16/134G06F11/1435G06F16/00G06F16/2272G06F16/24562G06F11/1458G06F11/1471G06F2201/80
Inventor 黄凯明孙继业望西淀
Owner SHENZHEN STREAMING VIDEO TECH
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