Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

File information storage method and file information read-write method based on separate storage

A file information, separate storage technology, applied in the file information storage based on separate storage, the file information read and write field, can solve the problems of inflexible processing, error-prone, extended metadata size limit, etc., to achieve wide adaptability. Effect

Active Publication Date: 2014-12-24
PEKING UNIV SHENZHEN GRADUATE SCHOOL
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] At present, there are three main ways to expand metadata. One is to use the interface provided by the file system to hand over the extended metadata to the file system for management. The disadvantage of this method is that there is a clear limit on the size of the extended metadata and can only handle A small amount of data cannot be used with a large amount of metadata
The second method is to store the extended metadata in a designated disk space (such as a database), and at the same time establish a corresponding relationship between a file and the corresponding extended metadata, and maintain this corresponding relationship by a data structure record. The disadvantage is that the processing is not flexible enough, the corresponding relationship between files needs to be maintained, and when processing a large number of files, searching for corresponding records will waste a lot of time
This method requires targeted modification of different file systems, and is prone to errors for non-open file systems

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
  • File information storage method and file information read-write method based on separate storage
  • File information storage method and file information read-write method based on separate storage
  • File information storage method and file information read-write method based on separate storage

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] Such as figure 1 and figure 2 As shown, this example provides a file information storage method based on separate storage, including the following steps:

[0047] In the detection record step, when opening a file, first check whether there is a record of the metadata storage address in the file, if it does not exist, jump directly to the new record step; if it exists, first judge whether it is a valid record, when the record is valid When accessing and reading back metadata and extracting data based on records;

[0048] Update the metadata judging step to judge whether the content in the metadata file has changed. When the access operation involves a change in the content of the extracted data, update the extracted data backed up in the metadata file and then jump to the step of backfilling the file; when the access operation involves When the content of the metadata changes, update the metadata backed up in the metadata file and jump to the step of backfilling the f...

Embodiment 2

[0068] Such as image 3 As shown, this example also provides a method for reading and writing file information based on separate storage. In this example, the method for storing file information based on separate storage described in Embodiment 1 is used for file storage. The method for reading and writing file information includes the following reading and writing methods: Take steps:

[0069] Judging the record step, when the file is opened, read the record of the metadata storage address in the file, judge whether the record is valid, if it is valid, jump to the safety monitoring judgment step, if it is invalid, create a new record and jump to the information saving step ;

[0070] The security monitoring judgment step is to judge whether the file has been encrypted and split, if not, jump directly to the information saving step; if so, then access the file access counter in the file index and the metadata file access counter in the metadata file, and compare the two Whet...

Embodiment 3

[0077] Such as Figure 4 As mentioned, on the basis of Embodiment 2, the file information reading and writing method described in this example includes the following writing steps:

[0078] Read step, start to write the file operation, read the corresponding record in the memory, judge whether there is a record, if not, directly realize the operation of writing the original file, if so, skip to the update judgment step;

[0079] The update judging step is to judge whether the record needs to be updated, if so, update the record information and jump to the judgment step of writing into the detachment area, otherwise directly jump to the judgment step of writing into the detachment area;

[0080] Write into the detachment area judging step, judging whether the update record needs to be written into the detachment area of ​​the original file, if so, modify the metadata file and then jump to the splitting step, otherwise directly jump to the splitting step;

[0081] And, in the s...

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 file information storage method and a file information read-write method based on separate storage. The file information storage method comprises the following steps of a detecting and recording step: detecting whether metadata storage address records exist in a file or not, if not, skipping to a record creating step, and if yes, visiting and reading back the metadata and extraction data when the records are valid; an updated metadata judging step: judging whether content in a metadata file is changed or not, if yes, skipping to a file refilling step after updating the metadata file, and if not, skipping to the file refilling step; the file refilling step: refilling the extraction data into the file to recover the original file content; the record creating step: creating a separate storage metadata storage address record, separating to form a section of space in the original file to store the metadata storage address, and separating and storing the extraction data and the metadata into the metadata file. The metadata is separated and stored, and the metadata storage record is maintained by the file.

Description

technical field [0001] The invention relates to a method for storing file information, in particular to a method for storing file information based on separate storage, and to a method for reading and writing file information thereof. Background technique [0002] The file storage method under the general file system will store file content and metadata in the same file system. The metadata is mainly divided into two parts: the metadata maintained by the file system and the metadata of a specific file type maintained by the file itself. The metadata maintained by the file system (such as file size, file storage start sector number, etc.) The file content is stored separately, and this part is centrally managed by the file system. When accessing a file, it first accesses the metadata blocks maintained by the file system, and uses these data blocks to find the sector where the file content is located, so as to operate the file. The other part of the metadata maintained by the...

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): G06F17/30
CPCG06F3/0608G06F16/113G06F16/122G06F16/13G06F16/164G06F16/172G06F16/1727G06F16/1737
Inventor 李大刚汪洋林信南朱晓阳
Owner PEKING UNIV SHENZHEN GRADUATE SCHOOL
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products