NAS File Attribute Batching for Large Directory Updates
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In Network File System (NFS), setting attributes for a large quantity of directories or files in a Network Attached Storage (NAS) server requires numerous query and setting requests, leading to low efficiency and high network resource consumption.
Innovation Solution
A NAS server performs batch attribute setting on multiple files and subdirectories based on a single request, determining an attribute setting range and using synchronous or asynchronous setting manners to improve efficiency and reduce resource consumption.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If the client performs separate query and setting operations for each file and subdirectory, then the attribute setting can be performed accurately, but the attribute setting efficiency is low and network resources are consumed excessively
Solution Approach 1:
The patent combines multiple separate attribute setting operations into a single batch operation. The client sends one attribute setting request that targets multiple files and subdirectories simultaneously, and the NAS server processes all attribute settings in one operation, thereby improving efficiency and reducing network resource consumption.
Solution Approach 2:
The attribute setting request is designed to handle multiple objects (files and subdirectories) within a single request. The request includes a file path list containing multiple paths, allowing the system to perform universal attribute setting across different object types in one operation.
2Productivity
If the client sends multiple separate attribute setting requests for each object, then each attribute can be set individually, but the number of requests increases leading to lower efficiency
Solution Approach 1:
The patent merges multiple individual attribute setting requests into a single batch request. The client constructs one request that includes a list of multiple file paths and the desired attribute values, eliminating the need for multiple separate requests and reducing overall system complexity.
3Productivity
If batch attribute setting is performed on all objects in the target directory, then efficiency is improved, but the flexibility to set attributes on specific subsets of objects is reduced
Solution Approach 1:
The patent segments the attribute setting operation by allowing the client to specify a file path list that can be filtered or selected based on criteria. The system can process attributes for specific files or subdirectories within the target directory by filtering the path list, thus maintaining flexibility while achieving batch processing efficiency.
Data Source
AI summary
A method includes a network attached storage (NAS) server that 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 objects in the target directory based on the target attribute, where the target attribute includes one or more of an owner attribute, a read-only attribute, a hidden attribute, a time attribute, or a permission attribute. The NAS server sends a response message for the attribute setting request to the client.


