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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com