NAS File Attribute Batching for Large Directory Updates
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current methods for setting file attributes in network attached storage (NAS) servers require separate queries and settings for each directory and file, leading to inefficient attribute setting and high network resource consumption when handling large quantities of directories or files.
Innovation Solution
A method and apparatus that enable a NAS server to perform batch attribute setting on multiple files and subdirectories within a target directory based on a single request, allowing for flexible attribute setting ranges and synchronous or asynchronous response options to improve efficiency and reduce network resource consumption.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If separate query and setting operations are performed on each directory and file, then the attribute setting can be performed on individual files, but the attribute setting efficiency is low and network resource consumption is high
Solution Approach 1:
The patent merges multiple separate query and setting operations into a single batch attribute setting operation. The server receives one attribute setting request that contains a target directory and multiple file identifiers, then performs attribute setting on all specified files in one operation, eliminating the need for separate query and setting requests for each file.
Solution Approach 2:
The attribute setting request is designed to handle multiple files simultaneously, making the operation universal rather than file-specific. The request structure allows specifying a target directory and multiple file identifiers, enabling the same operation to set attributes on any number of files in batch.
2Quantity of substance
If a large quantity of query requests and attribute setting requests are sent via the client, then the attributes of large quantities of directories or files can be set, but attribute setting efficiency is low and network resources are consumed
Solution Approach 1:
The patent combines multiple attribute setting operations into a single batch operation. Instead of sending separate requests for each file, the client sends one request containing a list of file identifiers, and the server processes all files in that single request, dramatically improving efficiency when handling large quantities of files.
Solution Approach 2:
The patent uses a copied structure where the attribute setting request template can be reused for multiple files by simply adding file identifiers to the request. This allows the same operation to be applied to any number of files without creating new operation types or complex procedures.
Data Source
Figure 1~2
Figure 3~4
Figure 5~6
AI summary
This application discloses a file attribute setting method, to improve file attribute setting efficiency of a network attached storage NAS server. The method in embodiments of this application includes: The network attached storage NAS server receives an attribute setting request sent by a client, where the attribute setting request indicates a target directory and a target attribute, the target directory includes a plurality of objects, and the objects are files or subdirectories. The NAS server performs attribute setting on the plurality of objects in the target directory based on the target attribute, where the target attribute includes one or more of the following: an owner attribute, a read-only attribute, a hidden attribute, a time attribute, and a permission attribute. The NAS server sends a response message for the attribute setting request to the client.