A file lock operation method, device, equipment and storage medium

By obtaining user lock operation requests and the lock list of the target file in the network file system of Linux, judging and executing lock operations, the resource contention and data consistency problems during multi-user access are solved, and the reliability and security of the system are improved.

CN115292264BActive Publication Date: 2026-02-17INSPUR SUZHOU INTELLIGENT TECH CO LTD
1 Cites 0 Cited by

Patent Information

Application Number
CN202210892217.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-27
Publication Date
2026-02-17
Estimated Expiration
2042-07-27

AI Technical Summary

Technical Problem

In the Network File System (NFS) of Linux, when multiple users access the same file at the same time, there are resource contention and data consistency problems that are difficult to solve effectively with existing technologies.

Method used

A file lock operation method is provided. By obtaining the user's lock operation request information and the lock list of the target file, it determines whether there is a lock on the file, and determines the location information of the lock of the file to be operated on based on the lock request information and the lock list, and performs locking or unlocking operations to ensure the accuracy and consistency of lock operations.

Benefits of technology

It enhances the reliability, ease of use, and security of the network file system, ensuring data synchronization across multiple clients and avoiding resource contention and data conflicts.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The application relates to a file lock operation method, device and equipment and a storage medium. The main technical scheme comprises the following steps: obtaining file lock request information input by a user on a client for performing a lock operation on a target file, obtaining a lock chain table in a target file storage entry, judging whether a file lock exists on the target file according to the lock chain table, when the file lock exists on the target file, determining position information of a to-be-operated file lock corresponding to a lock operation request and a historical file lock in the lock chain table according to the file lock request information and the lock chain table, and performing a lock operation on the target file according to the position information of the to-be-operated file lock corresponding to the lock operation request and the historical file lock in the lock chain table. The application can keep the data of multiple clients synchronized, and greatly enhances the reliability, ease of use and security of a network file system.
Need to check novelty before this filing date? Find Prior Art