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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com