A method and apparatus for processing a file access request

A file access and request processing technology, applied in the computer field, can solve the problems of low security of NFS clients, inability to count or limit the number of NFS client requests, etc., to avoid system crashes and improve security.

Active Publication Date: 2019-02-01
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF10 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide a file access request processing method, device, nfs server, and nfs system to solve the problem that the traditional ganesha-nfs business process running on the nfs server cannot count or limit the number of requests from the nfs client , leading to the problem of low security of the nfs client

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 method and apparatus for processing a file access request
  • A method and apparatus for processing a file access request
  • A method and apparatus for processing a file access request

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0055] The following introduces Embodiment 1 of a processing method for a file access request provided by the present invention. Embodiment 1 is implemented based on the ganesha-nfs business process running on the nfs server, see figure 1 , Embodiment 1 specifically includes:

[0056] Step S101: Set a processing cycle in advance, and initialize the number of processed requests at the beginning of the processing cycle.

[0057] Step S102: Receive the file access request sent by the current nfs client.

[0058] Step S103: Determine whether the number of processed requests in the current processing cycle reaches a preset threshold.

[0059] Step S104: discarding the file access request if the number of processed requests reaches a preset threshold.

[0060] Step S105: If the number of processed requests does not reach the preset threshold, add the file access request to a request processing queue, and update the number of processed requests.

[0061] It can be seen that the pr...

Embodiment 2

[0063] see figure 2 , embodiment two specifically includes:

[0064] Step S201: Set a processing cycle in advance, and initialize the number of processed requests for the current nfs client at the beginning of the processing cycle.

[0065] Step S202: Receive the file access request sent by the current nfs client.

[0066] Step S203: judging whether the number of processed requests for the current nfs client in the current processing cycle reaches a preset threshold.

[0067] Step S204: If the number of processed requests for the current nfs client reaches a preset threshold, discard the file access request.

[0068] Step S205: If the number of processed requests for the current nfs client does not reach the preset threshold, add the file access request to a request processing queue, and update the number of processed requests.

[0069] It can be seen that the processing method of a file access request provided in this embodiment mainly limits the number of processed file ...

Embodiment 3

[0070] see image 3 , Embodiment three specifically includes:

[0071] Step S301: Set a processing cycle in advance, and initialize the number of processed requests for multiple nfs clients at the beginning of the processing cycle.

[0072] Step S302: Receive the file access request sent by the current nfs client.

[0073] Step S303: judging whether the number of processed requests for multiple nfs clients in the current processing cycle reaches a preset threshold.

[0074] Step S304: If the number of processed requests for multiple nfs clients reaches a preset threshold, discard the file access request.

[0075] Step S305: If the number of processed requests for multiple nfs clients does not reach the preset threshold, add the file access request to a request processing queue, and update the number of processed requests.

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 file access request processing method, which is based on ganesha-nfs business process implementation, the number of requests processed can be initialized at the beginning ofthe processing cycle, After receiving the file access request sent by the current nfs client, it is judged whether the number of processed requests in the current processing cycle reaches the preset threshold, and if so, the file access request is discarded; otherwise, the file access request is added to the request processing queue and the number of processed requests is updated. Therefore, the method can limit the number of file access requests handled by the server in a processing cycle, avoid the system crash caused by processing a large number of file access requests centrally in a certain period of time, limit a large number of malicious file access requests, and improve the security. In addition, the invention also provides a file access request processing device, an nfs server, andan nfs system, which function corresponds to the above method.

Description

technical field [0001] The invention relates to the computer field, in particular to a file access request processing method, device, nfs server, and nfs system. Background technique [0002] NFS is a very widely used file sharing protocol in the Linux environment. Through this protocol, the NFS client can easily access the shared files located on the NFS server. [0003] Among them, ganesha-nfs is a very easy-to-use application software using this protocol. Ganesha-nfs running on the nfs server can handle file access requests from nfs clients, but because the number of file access requests from nfs clients cannot be counted , may bring many security problems. For example, first, the number of requests processed by the nfs server in a certain period of time is too large and too concentrated, which may cause the nfs server to crash; second, when the file access request processing volume of each nfs client When the difference is large, it may cause low performance of the nfs ...

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/13
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