Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and apparatus for operating a file system

A file system operation and file system technology, which is applied in the field of file system operation, can solve the problems of file system throughput decline and inability to perform write operations, etc., and achieve the effect of improving throughput

Active Publication Date: 2017-05-31
BEIJING JINGDONG 360 DEGREE E COMMERCE CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the read operation thread accesses the file system, the write operation thread cannot perform the write operation because of the mutual exclusion principle of the read lock and the write lock; otherwise, if the write operation thread is in progress, the read operation cannot be performed
Therefore, when reading and writing operations are concurrent, the throughput of the file system will decrease due to the mutual exclusion of the file system read-write lock.

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 apparatus for operating a file system
  • Method and apparatus for operating a file system
  • Method and apparatus for operating a file system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content.

[0033] image 3 A first embodiment of the invention is shown.

[0034] image 3 It is a flowchart of a method for operating a file system provided by the first embodiment of the present invention. This method is suitable for operating the file system under concurrent conditions, for example: files or files under multiple different folders can be simultaneously folder for writing, which can be performed by a computer, such as image 3 As shown, the method specifically includes the following steps:

[0035] Step 31, accordin...

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 discloses a method and device for operating a file system. The method comprises the steps that reading locks are added to all nodes except for target nodes on the operation paths of the file system according to a received operating request from top to bottom; reading locks or writing locks are added to the target nodes according to the operating request; the operation required by the operating request is carried out on the target nodes; the locks on all the nodes on the operation paths are released from bottom to top from the target nodes. The independent lock can be added to each node in the file system, the corresponding operations can be carried out on multiple target nodes on the different operation paths at the same time and cannot be influenced by one another, the reading operation can be carried out on the different nodes on the same operation path, and when the writing operation is carried out on the lowermost node on one operation path, the reading operation on the other nodes on the operation path at the same time cannot be influenced, and the handling capacity of the file system is increased.

Description

technical field [0001] Embodiments of the present invention relate to data operation technology, and in particular to a method and device for operating a file system. Background technique [0002] In a file system with a tree directory structure, all nodes in the file system must be concurrently locked when processing concurrent operations to ensure that operations are written to the log in an orderly manner. [0003] In the prior art, the file system control part uses a reentrant read-write lock (Reentrant Read WriteLock) to coordinate the lock mechanism in the file system when processing read and write operations. [0004] First, the entire file system is locked according to the read and write operation request. For example, for read operations (for example, read a list of files in a folder, obtain file information, obtain file content, etc.), read locks are added to all nodes of the file system to be operated, and for write operations (for example, in a folder Add files...

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): G06F17/30
CPCG06F16/1774
Inventor 马文金
Owner BEIJING JINGDONG 360 DEGREE E COMMERCE CO LTD