Storage Server Directory Deletion Efficiency
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The existing directory deletion process in network-attached storage (NAS) systems is inefficient, requiring extensive information exchange between the host and server, leading to prolonged deletion times due to the need for repeated verification and confirmation, especially when dealing with large directories.
Innovation Solution
A method and apparatus that enhance directory deletion efficiency by allowing the storage server to locally store user information and perform concurrent deletions using multiple threads, reducing the need for frequent host-server communication and minimizing resource and bandwidth usage.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of time
If the host and NAS server exchange information for each deletion operation, then deletion accuracy is maintained, but deletion time increases significantly
Solution Approach 1:
The patent applies preliminary action by having the host perform a recursive traversal and set deletion flags on all files and subdirectories before the actual deletion occurs. This pre-processing step marks all target objects in advance, so that during the actual deletion phase, the server only needs to execute pre-marked items without repeated verification, significantly reducing deletion time while maintaining accuracy through the pre-established deletion markers.
2Loss of energy
If the storage server performs verification with the host for each file or directory, then permission control is ensured, but bandwidth consumption increases
Solution Approach 1:
The patent reduces bandwidth consumption by performing permission verification in advance. The host obtains deletion permission and sets deletion flags on all target files and subdirectories during the traversal phase. Once the deletion flag is set, subsequent deletion operations on marked items do not require repeated permission verification with the server, thereby reducing bandwidth consumption while maintaining permission control through the pre-established deletion markers.
3Productivity
If the host traverses and verifies each subdirectory and file individually, then deletion precision is maintained, but occupied resources increase
Solution Approach 1:
The patent improves deletion efficiency by performing a comprehensive recursive traversal and setting deletion flags on all target files and subdirectories in advance. This pre-processing phase consolidates the resource-intensive traversal and verification operations into a single pass, after which the actual deletion can proceed efficiently by simply executing the pre-marked items without requiring repeated resource consumption for verification.
Data Source
AI summary
A directory deletion method and apparatus, and a storage server, where the directory deletion method includes receiving, by a storage server, a delete operation authentication request of a host, where the delete operation authentication request carries user information and information about a target directory, storing, by the storage server, the user information and returning a file identifier (FID) of the target directory to the host after authentication succeeds, sending, by the host to the storage server, a delete request carrying the FID, performing, by the storage server, verification on the file and the subdirectory using the user information, and deleting a successfully verified empty subdirectory and a successfully verified file. Hence, the directory deletion method and the apparatus, and the storage server improve directory deletion efficiency.


