User mode network file system file lock method, device and equipment

A network file system and file lock technology, applied in the field of user-mode network file system file lock methods and devices, can solve problems such as file conflict, system stability, data inconsistency, etc., to ensure data consistency, improve stability, and avoid files. Effects of conflict events

Active Publication Date: 2019-04-26
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF3 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, as enterprise data becomes larger and larger, users have higher and higher requirements for data transmission performance and stability. In the current distributed object storage NFS-Ganesha, when multiple clients simultaneously access server files When this happens, it will cause data inconsistency, which will cause problems such as file conflicts and poor system stability.

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
  • User mode network file system file lock method, device and equipment
  • User mode network file system file lock method, device and equipment
  • User mode network file system file lock method, device and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0041] The embodiment of this application discloses a method for locking files in a user-mode network file system, which is applied to the NFS-Ganesha server, see figure 1 As shown, the method includes:

[0042] Step S11: Obtain the file lock request information sent by the client, and obtain corresponding file lock information according to the file lock request information.

[0043] Specifically, the file lock request information may include the client's lock status reply flag bit...

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 user mode network file system file lock method, device and equipment, and the method comprises the steps: obtaining file lock request information sent by a client, and obtaining the corresponding file lock information according to the file lock request information; Obtaining a file lock operation request which is sent by the client and generated according to the file lockrequest information; Verifying the file lock operation request by using the file lock information; And if the verification is passed, calling a bottom distributed file system to respond to the file lock operation request. Therefore, according to the invention, the file lock technology and the distributed object storage NFS-Ganesha are combined; the data consistency of the distributed file systemin the concurrent access process is ensured through the file lock technology, so that the occurrence of a file conflict event is effectively avoided, and the stability of the system is improved.

Description

technical field [0001] The present application relates to the field of Linux network file systems, in particular to a file locking method, device and equipment of a user state network file system. Background technique [0002] NFS-Ganesha (Network File System User-space, the network file system user-space version) is an open source project as a user-space network file system. Among them, the user mode refers to only limited access to memory, and does not allow access to peripheral devices, the ability to occupy the CPU is deprived, and CPU resources can be obtained by other programs. NFS is a kernel-mode network file system. As one of the file systems supported by FreeBSD, it allows computers in the network to share resources through the TCP / IP network. Among them, the kernel mode means that the CPU can access all data in the memory, including peripheral devices, such as hard disks, network cards, etc., and the CPU can also switch itself from one program to another. In 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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/176G06F16/182H04L29/08
CPCH04L67/1097
Inventor 臧林劼
Owner ZHENGZHOU YUNHAI INFORMATION 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