Method and device for storing files and method and device for deleting files
A file storage and file deletion technology, applied in file systems, special data processing applications, instruments, etc., can solve the problems of long deletion process, affecting disk access speed, etc., and achieve the effect of reducing system resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] Such as figure 1 As shown, the file storage device 100 of this embodiment includes: a file data storage unit 101 for storing directory data and application file data under the directory in units of data blocks; a data block pointer storage unit 102 for storing pointers to the The data block pointer of the data block; the directory node storage unit 103 is used to store the directory index node information of the directory; the file node storage unit 104 is used to store the directory index node information and the application file index node information; location information The storage unit 105 is configured to store the application file data block pointer position information of the application file in the data block pointer storage unit, and the application file inode position information of the application file in the file node storage unit.
[0028] Such as figure 2 As shown, the process flow of the file storage method in this embodiment includes: storing directo...
Embodiment 2
[0037] in such as Figure 4 The directory inode number 2000 of the subdirectory 2000 is added to the directory node list 1002 shown.
[0038] Such as Figure 5 As shown, three attribute files are created for subdirectory 2000: data block pointer list 2001, directory node list 2002 and file node list 2003, and the inode numbers of the three attribute files are 2001, 2002 and 2003 in sequence.
[0039] Create an offset location list 3101 for an application file 3100, create an offset location list 3201 for an application file 3200, create an offset location list 3301 for an application file 3300, create an offset location list 3401 for an application file 3400, and create an offset location list 3401 for an application file 3500. Shift location list 3501.
[0040] The data block pointer list 2001 , which is a data block pointer set, records: pointers 621 , 622 , 623 , 624 and pointers 700 - 704 . Each pointer points to different data blocks of the nonvolatile memory respectiv...
Embodiment 3
[0050] Such as Image 6 As shown, the file deletion device in this embodiment includes: a data block pointer obtaining unit 201 for obtaining a data block pointer set pointing to a data block storing directory data and application file data under the directory; a directory node obtaining unit 202 for Obtaining the directory index node information of the directory and the file index node information of the application file; the file node obtaining unit 203 is used to obtain the position information of the application file and the data block pointer, and the application file and the The location information of the file index node information; the data release unit 204 is used to obtain the application file corresponding to the application file to be deleted from the data block pointer set of the data block pointer obtaining unit 201 according to the location information of the application file and the data block pointer obtained by the file node obtaining unit 203. The data bloc...
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