A file update method and storage device

A file update and storage device technology, which is applied in the field of file update methods and storage devices, can solve the problems of large space overhead, large metadata, and low efficiency, and achieve the effects of reducing disk fragmentation, copying, and modification

Active Publication Date: 2020-04-21
HUAWEI TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, because each update operation requires forced reallocation, and after updating the updated data, it is necessary to point the pointer to the old data block to the data block storing the updated data, the space overhead is large, and the metadata involved in modification is relatively complex. ,low efficiency

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
  • A file update method and storage device
  • A file update method and storage device
  • A file update method and storage device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0080] The embodiment of the present invention provides a file update method and storage device, which are used to solve the problem that the existing COW-based file system updates data due to the large number of modified metadata and is relatively complicated, resulting in low efficiency and excessive disk fragmentation The problem.

[0081] In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments.

[0082] The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present invention and the above drawings are used to distinguish similar objects and not necessarily Describ...

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 present invention relates to the field of file systems, and in particular, to a file updating method and a storage device. The method may comprise: receiving a file updating request, and writing second data into an allocated data block; determining a file block number of first data according to a first file offset; determining an index node of a first file according to a file identifier of the first file; recording, in a file updating table to which a first pointer in the index node of the first file points, a correspondence between the file block number of the first data and a logic block number of a data block for storing the second data, the logic block number being used for pointing to a physical address for storing the second data; and setting the state of the first data to invalid in a file state table to which a second pointer in the index node points. By means of the solution in the embodiments of the present invention, during data updating, because no content and no indirect block pointer in an index node need to be modified, modification of metadata during updating of file data of a file system can be reduced, thus improving the updating efficiency of the file data.

Description

technical field [0001] The invention relates to the field of file systems, in particular to a file updating method and a storage device. Background technique [0002] In the file system of the linux operating system, each file contains file metadata and actual data. File metadata includes file permissions (rxw), file attributes (owner, group, time parameters, etc.) Data storage location. The file system usually stores these two parts of data in different blocks, the permissions and attributes are placed in the index node, and the actual data is placed in the data block. In addition, there is a super block (super block) that will record the overall information of the entire file system. The index node records the attributes of the file. One file occupies one index node, and records the location of the data block where the data of this file is located. [0003] Since each index node and data block has a number, and each file occupies an index node, a pointer to a logical bl...

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 Patents(China)
IPC IPC(8): G06F12/02
CPCG06F12/02
Inventor 罗彩珠陈克平文刘飞
Owner HUAWEI TECH CO LTD
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