File Processing Method, Apparatus, Electronic Device, and Storage Medium

By deploying CephFS client on the NFS server and writing directly to the storage device in write-through mode, the compatibility and performance problems of CephFS client are solved, file write efficiency and response speed are improved, and dependence of high-kernel versions is avoided.

CN114661661BActive Publication Date: 2025-06-13ZHEJIANG UNIVIEW TECH CO LTD
2 Cites 0 Cited by

Patent Information

Application Number
CN202011528178.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-22
Publication Date
2025-06-13
Estimated Expiration
2040-12-22

AI Technical Summary

Technical Problem

Existing CephFS clients have compatibility and performance problems, and require high kernel versions, which makes most devices unable to provide services effectively.

Method used

By deploying CephFS client on the NFS server, the file blocks to be processed are converted using the write-through mode and the file blocks are directly written to the storage device to avoid cache through the file system.

Benefits of technology

Improves file write efficiency and response speed, enhances system stability, and avoids dependence on high-core versions.

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

Abstract

An embodiment of the present invention discloses a file processing method, apparatus, electronic device, and storage medium. The method includes: determining a to-be-processed file block and a to-be-processed write request from the received to-be-processed message; determining whether to enable the write-through mode to perform a write processing operation on the to-be-processed file block; if it is determined to enable the write-through mode, performing a structural transformation on the index of the to-be-processed file block, and controlling the CephFS client to directly write the to-be-processed file block after the structural transformation into the storage device according to the to-be-processed write request. By adopting the solution of the present application, when continuously writing new files into the file system and each file is only written once and will not be read in a short time, by performing a structural transformation on the index of the to-be-processed file block, the CephFS client can support the write request pass-through from the NFS server, so as to directly write the to-be-processed file block into the storage device, improving the average response speed and write efficiency of the file.
Need to check novelty before this filing date? Find Prior Art