Recycling station function implementation method and system applied to parallel file system

By introducing the recycling station function in the parallel file system, configure the parameters of the recycling station and generate the unique storage path of the global situation, solve the problem that it is difficult to recover after the Miking File system is deleted by mistake, and realizes efficient data protection and storage management.

CN119376635APending Publication Date: 2025-01-28V & G INFORMATION SYSTEM CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411539821.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

The lack of an effective recycling bin mechanism in the existing parallel file system makes it difficult to recover after accidentally deletion of files and is difficult to effectively scale in a distributed environment.

Method used

Provide a recycling station function implementation method applied to the parallel file system. By the storage management interface configuration of the recycling station parameters, in response to the data deletion of the request to determine whether the recycling station function is enabled. The path moves the data to the preset storage area.

Benefits of technology

Realized the recycling station mechanism of safe and effective management to delete files in parallel file systems, avoiding the irreversible consequences of deleting important data by users or applications, improving the system's fault tolerance and data protection capabilities, and solving the naming conflict between nodes. Data consistency and storage space management issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119376635A_ABST
    Figure CN119376635A_ABST
Patent Text Reader

Abstract

The invention provides a recycle bin function implementation method and system applied to a parallel file system. The method comprises the following steps: configuring recycle bin parameters through a storage management interface of a parallel file system, and updating the configured recycle bin parameters to a configuration file of the parallel file system; in response to a data deletion request of the parallel file system, judging whether a recycle bin function is enabled or not, and if yes, transferring data corresponding to the data deletion request into a recycle process; and generating a corresponding global unique storage path according to the current timestamp and the file name or directory name of the target data transferred to the recovery process, and moving the target data to a preset storage area. The system comprises functional modules for realizing the steps in a one-to-one correspondence manner. By adopting the method, the recycle bin function can be introduced into the parallel file system, so that the problem that the file is difficult to recover after being deleted by mistake is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of storage management of parallel file systems, and more specifically, relates to a method and system for realizing a recycle bin function applied to a parallel file system. Background Art

[0002] In existing parallel file systems, when a file is deleted, it is usually immediately removed from the parallel file system and cannot be recovered. This behavior may cause irreparable losses when a user deletes a file by mistake or when the system fails unexpectedly. In order to solve the problem of accidental file deletion, some file systems have introduced a recycle bin function, so that files are not permanently removed immediately after deletion, but moved to a specific directory for temporary storage, thereby providing a certain time window for file recovery.

[0003] The recycling mechanism in the prior art is usually only implemented in the local file system and is difficult to effectively extend to the parallel file system. The parallel file system needs to consider issues such as synchronization between nodes, naming conflicts, data consistency and performance impact, which makes the design of the recycling mechanism more complicated.

[0004] Therefore, there is an urgent need for a recycle bin mechanism that can safely and effectively manage deleted files in a distributed environment, which can ensure data recovery capabilities without having a significant impact on system performance. Summary of the invention

[0005] In view of this, the present invention provides a method and system for implementing a recycle bin function applied to a parallel file system.

[0006] According to a first aspect of the present invention, there is provided a method for implementing a recycle bin function applied to a parallel file system, the method comprising the following steps:

[0007] Configure the recycle bin parameters through the storage management interface of the parallel file system, and update the configured recycle bin parameters to the configuration file of the parallel file system;

[0008] In response to the data deletion request of the parallel file system, determining whether a recycle bin function is enabled, and if enabled, transferring the data corresponding to the data deletion request to a recycling process;

[0009] A corresponding globally unique storage path is generated according to the current timestamp and the file name or directory name of the target data transferred to the recycling process, and the target data is moved to a preset storage area.

[0010] Optionally, the recycle bin parameters configured through the storage management interface of the parallel file system include a maximum data retention time, an upper limit of the recycle bin storage space, and an automatic cleanup execution interval.

[0011] Optionally, the method for implementing the recycle bin function further includes the following steps:

[0012] The data in the recycle bin is scanned regularly according to the automatic cleaning execution interval to determine whether there is data whose storage time exceeds the maximum storage time of the data. If so, the corresponding data is deleted.

[0013] Optionally, the method for implementing the recycle bin function further includes the following steps:

[0014] The data to be restored is determined through the storage management interface of the parallel file system, and the corresponding data is moved from the recycle bin back to the original path.

[0015] Optionally, the method for implementing the recycle bin function further includes the following steps:

[0016] When determining whether the recycle bin function is enabled, if it is not enabled, the data corresponding to the data deletion request is permanently deleted.

[0017] According to a second aspect of the present invention, a system for implementing a recycle bin function applied to a parallel file system is provided, the system comprising the following functional modules:

[0018] A recycle bin parameter configuration module, used to configure the recycle bin parameters through the storage management interface of the parallel file system, and update the configured recycle bin parameters to the configuration file of the parallel file system;

[0019] A data deletion interception module, for responding to a data deletion request of the parallel file system, determining whether a recycle bin function is enabled, and if enabled, transferring the data corresponding to the data deletion request to a recycling process;

[0020] The recycling bin path generation and storage module is used to generate a corresponding globally unique storage path according to the current timestamp and the file name or directory name of the target data transferred to the recycling process, and move the target data to a preset storage area.

[0021] Optionally, the recycle bin parameters configured by the recycle bin parameter configuration module include a maximum data retention time, an upper limit of the recycle bin storage space, and an automatic cleanup execution interval.

[0022] Optionally, the recycle bin function implementation system further includes the following functional modules:

[0023] The data automatic cleaning module is used to regularly scan the data in the recycle bin according to the automatic cleaning execution interval, determine whether there is data whose storage time exceeds the maximum storage time of the data, and if so, delete the corresponding data.

[0024] Optionally, the recycle bin function implementation system further includes the following functional modules:

[0025] The data recovery module is used to determine the data to be recovered through the storage management interface of the parallel file system, and move the corresponding data from the recycle bin back to the original path.

[0026] Optionally, when the data deletion interception module determines whether the recycle bin function is enabled, if it is not enabled, the data corresponding to the data deletion request is permanently deleted.

[0027] The beneficial effects of the present invention are:

[0028] The method for realizing the recycle bin function applied to a parallel file system of the present invention comprises the following steps: firstly, configuring the recycle bin parameters through the storage management interface of the parallel file system, and updating the configured recycle bin parameters into the configuration file of the parallel file system; secondly, judging whether the recycle bin function is enabled in response to a data deletion request of the parallel file system, and if enabled, transferring the data corresponding to the data deletion request into the recycling process; finally, generating a corresponding globally unique storage path according to the current timestamp and the file name or directory name of the target data transferred into the recycling process, and moving the target data to a preset storage area.

[0029] The recycle bin mechanism provided by the present invention can avoid irreversible consequences caused by users or applications accidentally deleting important data. By redirecting deleted data to the recycle bin and allowing data recovery within a specific time, the fault tolerance and data protection capabilities of the system can be effectively improved. At the same time, in view of the characteristics of the parallel file system, the present invention further solves the problems of naming conflicts between nodes, data consistency, storage space management, etc., and provides a more flexible and reliable solution for large-scale distributed storage systems.

[0030] The recycle bin function implementation system applied to a parallel file system of the present invention and the recycle bin function implementation method applied to a parallel file system belong to a general inventive concept, and have at least the same beneficial effects as the recycle bin function implementation method applied to a parallel file system, and the beneficial effects are not repeated here.

[0031] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The present invention may be better understood by referring to the following description taken in conjunction with the accompanying drawings, in which the same or similar reference numerals are used throughout the drawings to represent the same or similar components.

[0033] Figure 1A flowchart of a method for implementing a recycle bin function applied to a parallel file system according to an embodiment of the present invention is shown;

[0034] Figure 2 A flowchart of the implementation of the recycle bin parameter configuration link according to an embodiment of the present invention is shown;

[0035] Figure 3 A flowchart of the implementation of the data deletion interception link according to an embodiment of the present invention is shown;

[0036] Figure 4 A flowchart of the generation and storage of recycling bin paths according to an embodiment of the present invention is shown;

[0037] Figure 5 A flowchart for implementing the automatic data cleaning process according to an embodiment of the present invention is shown;

[0038] Figure 6 A flow chart for implementing the data recovery process according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0039] In order to enable those skilled in the art to more fully understand the technical solution of the present invention, the exemplary embodiments of the present invention will be described in more comprehensive and detailed in conjunction with the accompanying drawings below. Obviously, the one or more embodiments of the present invention described below are only one or more of the specific ways in which the technical solution of the present invention can be implemented, and are not exhaustive. It should be understood that other ways belonging to a general inventive concept can be used to implement the technical solution of the present invention, and should not be limited by the exemplary embodiments described. Based on one or more embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

[0040] Embodiment: A parallel file system is different from a traditional local file system in that it needs to coordinate data storage and operations between multiple nodes and ensure data consistency and reliability. Especially when it comes to deletion operations, any accidental deletion may lead to permanent data loss, which will have a significant impact on users and business systems. Therefore, in a distributed environment, it is particularly important to design a mechanism that can effectively manage deleted files and support the recovery of accidentally deleted data.

[0041] Figure 1 The following is a flowchart showing a method for implementing a recycle bin function applied to a parallel file system according to an embodiment of the present invention. Figure 1 The method for implementing the recycle bin function applied to a parallel file system according to an embodiment of the present invention comprises the following steps:

[0042] Step S100: configuring recycle bin parameters through the storage management interface of the parallel file system, and updating the configured recycle bin parameters to the configuration file of the parallel file system;

[0043] Step S200: In response to the data deletion request of the parallel file system, determining whether the recycle bin function is enabled; if enabled, transferring the data corresponding to the data deletion request to a recycling process;

[0044] Step S300: Generate a corresponding globally unique storage path according to the current timestamp and the file name or directory name of the target data transferred to the recycling process, and move the target data to a preset storage area.

[0045] Specifically, in the embodiment of the present invention, the parallel file system is a parallel file system based on the domestic Shenwei platform.

[0046] Furthermore, in step S100 of the embodiment of the present invention, the recycle bin parameters configured through the storage management interface of the parallel file system include the maximum data storage time, the upper limit of the recycle bin storage space, and the automatic cleanup execution interval.

[0047] Specifically, Figure 2 The following is a flowchart showing the implementation of the recycling station parameter configuration link of an embodiment of the present invention. Figure 2 In the embodiment of the present invention, the recycling station parameter configuration link includes the following steps:

[0048] 1) Configure various parameters through the storage system management interface;

[0049] 2) Call the storage system configuration interface and pass the user input parameters to the storage system;

[0050] 3) Reload the configuration file to make the new configuration take effect immediately and ensure the persistence of the parameter configuration.

[0051] The user enters or selects configuration items in the management interface, such as the maximum file retention time, the maximum storage space of the recycle bin, the automatic cleanup time interval, etc. The management interface modifies the system configuration file by calling the storage system's configuration interface to ensure that the parameters are correctly written and effective.

[0052] First, the user enters or selects the relevant parameters of the recycle bin through the management interface of the storage system. The interface provides form items for users to enter configuration parameters, such as: the maximum file storage time (in days), the upper limit of the recycle bin storage space (GB), and the execution interval of automatic cleanup (hours). The core processing interface is as follows:

[0053]

[0054] Secondly, after the user submits the form, the management interface will call the storage system's configuration interface. The function of the configuration interface is to pass the parameters entered by the user to the storage system so that it can modify the system's configuration file. The configuration file will record various parameters, and the system will manage the recycle bin based on these parameters in subsequent operations. Its core processing interface is as follows:

[0055]

[0056] "cleanup_interval":cleanup_interval

[0057] }

[0058] with open(" / etc / storage / trash_config.conf","w")as config_file:

[0059] config_file.write(str(config_data))#Write configuration file

[0060] Finally, after the configuration interface call is completed, the system will modify the corresponding configuration file and update the parameters set by the user into the file. This process ensures the persistent storage of the parameters, and the storage system will reload the configuration file to make the new configuration take effect immediately. The system will perform corresponding recycle bin management operations based on the new configuration, such as cleaning up expired files according to the set time, limiting the maximum capacity of the recycle bin, etc. Its core processing interface is as follows:

[0061] class storage_system_api:

[0062] def set_retention_time(days):

[0063] print(f"Setting retention time to{days}days.")

[0064] #Update the specific implementation of saving time in the system

[0065] def set_max_storage_size(size_gb):

[0066] print(f"Setting max storage size to{size_gb}GB.")

[0067] #Update the specific implementation of the maximum storage space in the system

[0068] def set_cleanup_interval(hours):

[0069] print(f"Setting cleanup interval to{hours}hours.")

[0070] #Update the specific implementation of the automatic cleanup interval in the system

[0071] class SystemReload:

[0072] def apply_new_config():

[0073] #Reload system configuration

[0074] print("Reloading system configuration...")

[0075] #Restart the recycle bin service or make the configuration take effect immediately

[0076] The above three steps complete the parameter configuration of the recycle bin function, and the configured parameters take effect on the parallel file system.

[0077] Specifically, Figure 3 The following is a flowchart showing the implementation of the data deletion interception link in an embodiment of the present invention.

[0078] Reference Figure 3 In the embodiment of the present invention, the data deletion interception link includes the following steps:

[0079] 1) Intercept deletion requests;

[0080] 2) Determine whether the Recycle Bin function is enabled.

[0081] Intercepts data deletion requests from users and determines whether the recycle bin function is enabled before the deletion operation occurs. If the recycle bin function is enabled, subsequent operations are handled by other data movement related modules; if the recycle bin function is not enabled, the file is allowed to be permanently deleted.

[0082] First, when the user performs a deletion operation, the parallel file system will issue an rm request. The deletion interception module captures the request and enters the deletion interception process. Its core processing interface is as follows:

[0083]

[0084] Secondly, after intercepting the deletion request, the system first determines whether the recycle bin function is enabled. This status is usually stored in the system configuration, and the module obtains the status by calling the system API. Its core processing interface is as follows:

[0085]

[0086] Finally, once a deletion request is captured, the deletion interception module will call the check function to determine whether the recycle bin is enabled. If the recycle bin is enabled, the deletion request will be temporarily blocked and transferred to the data processing related module for processing; if the recycle bin is not enabled, the deletion operation is allowed to continue and the file will be permanently deleted. Its core processing interface is as follows:

[0087]

[0088]

[0089] The above three steps complete the data deletion interception function of the Recycle Bin function. When the Recycle Bin function is turned on, after the deletion request is intercepted, other data processing modules will further process the file movement or recovery function; if the Recycle Bin is closed, the file is permanently deleted and no further processing is required.

[0090] Specifically, Figure 4 The following is a flowchart showing the implementation of the recycling bin path generation and storage link in an embodiment of the present invention. Figure 4 In the embodiment of the present invention, the recycling bin path generation and storage process includes the following steps:

[0091] 1) Generate a globally unique storage path;

[0092] 2) Move files or directories to the specified Recycle Bin storage area.

[0093] The Recycle Bin path generation and storage module generates a globally unique storage path and saves the data to the specified storage area. This module ensures that files do not conflict with other files when stored in the Recycle Bin by using a combination of timestamps and file or directory names.

[0094] First, when a user performs a file deletion operation, the system needs to generate a unique storage path. This path is based on the current timestamp and the name of the deleted file or directory to ensure its uniqueness in the recycle bin. The core processing interface is as follows:

[0095]

[0096] Secondly, after generating a unique path, the system moves the file or directory to a preset storage area. This storage area is usually a recycle bin directory dedicated to storing deleted files, ensuring that the file is stored safely and preventing conflicts with other files. The core processing interface is as follows:

[0097]

[0098] Through the above two steps, the path generation and storage module functions are completed. After the deletion operation of the file or directory is safely intercepted, the system can generate a unique storage path and store it in the recycle bin. The path generation mechanism uses a combination of timestamp and file name to ensure the uniqueness of the file. At the same time, the system will record the deletion and storage operations of the file to provide support for subsequent recovery.

[0099] Furthermore, the method for implementing the recycle bin function applied to a parallel file system according to an embodiment of the present invention further includes the following steps:

[0100] The data in the recycle bin is scanned regularly according to the automatic cleaning execution interval to determine whether there is data whose storage time exceeds the maximum storage time of the data. If so, the corresponding data is deleted.

[0101] Specifically, Figure 5 The following is a flowchart showing the implementation of the automatic data cleaning process in an embodiment of the present invention.

[0102] Reference Figure 5 In the embodiment of the present invention, the automatic data cleaning process includes the following steps:

[0103] 1) According to the parameter settings, regularly scan the data in the recycle bin to check whether any data exceeds the set retention period;

[0104] 2) If the data expires, it will be automatically deleted permanently to free up storage space.

[0105] The automatic data cleanup module regularly checks the data stored in the recycle bin to determine whether it has exceeded the set retention period, and automatically cleans up expired data to free up storage space.

[0106] First, the system needs to scan the files in the recycle bin regularly according to the set time interval. The scanning process includes reading all the files in the recycle bin directory, checking the creation time of each file, and comparing it with the current time. Its core processing interface is as follows:

[0107]

[0108] Secondly, if the system finds that the files exceed the set retention period, the system will automatically delete these files to free up storage space. And through regular scanning, the system's storage efficiency is guaranteed. Its core processing interface is as follows:

[0109]

[0110] Through the above two steps, the automatic data cleanup module function is completed, the storage space in the recycle bin is effectively managed, expired files are automatically deleted, the effective use of storage space is ensured, the need for manual intervention is reduced, and the user experience and system maintenance efficiency are improved.

[0111] Furthermore, the method for implementing the recycle bin function applied to a parallel file system according to an embodiment of the present invention further includes the following steps:

[0112] The data to be restored is determined through the storage management interface of the parallel file system, and the corresponding data is moved from the recycle bin back to the original path.

[0113] Specifically, Figure 6 FIG. 1 shows a flowchart of the implementation of the data recovery link of an embodiment of the present invention. Figure 6 In the embodiment of the present invention, the data recovery process includes the following steps:

[0114] 1) View the data that the user needs to restore in the recycle bin through the storage management interface;

[0115] 2) Move the data from the Recycle Bin back to the original path through the restore operation.

[0116] The data recovery module is designed to provide users with convenient data recovery services. Through this module, users can easily access the storage management interface and view all files in the recycle bin. This function enables users to quickly find and identify files that have been deleted by mistake, reducing the risk of data loss due to operational errors. In addition, this module supports restoring selected files from the recycle bin to their original path, allowing users to quickly restore required data without complex operations, thereby improving the efficiency and flexibility of data management.

[0117] First, the user views all files in the recycle bin through the storage management interface. This process requires reading the file list from the recycle bin directory and displaying it to the user so that the user can select the files to be restored. The core processing interface is as follows:

[0118]

[0119]

[0120] Secondly, after the user selects the file to be recovered, the system moves it back from the Recycle Bin to its original path. The recovery process involves obtaining the original path of the file and then copying the file back to that location. Its core processing interface is as follows:

[0121]

[0122] By completing the data recovery module function through the above two steps, users can easily view the files in the recycle bin and restore the required files to the original location, reducing the risk of data loss due to accidental deletion and improving the flexibility of data management.

[0123] By adopting the method for realizing the recycle bin function applied to a parallel file system according to an embodiment of the present invention, the configuration and use of the garbage recycling bin function of the parallel file system can be completed, and the user can flexibly set the parameters of the recycle bin, including the maximum storage time of the file, the storage space limit, and the frequency of automatic cleaning, to ensure that the system is optimally configured according to the needs. When the user performs a file deletion operation, the file will not be immediately and permanently deleted, but will be safely stored in the recycle bin, avoiding data loss due to misoperation. The system will regularly clean up expired files in the recycle bin according to preset cleaning rules, thereby ensuring efficient use of storage space. Users can also restore accidentally deleted files at any time and seamlessly restore them to their original locations to ensure data integrity and recoverability. This function not only improves the security of data management and avoids losses caused by accidental deletion, but also can automatically optimize the use of storage resources and improve the overall performance and stability of the system.

[0124] The implementation method of the recycle bin function applied to the parallel file system of the embodiment of the present invention introduces the recycle bin function into the parallel file system to solve the problem that files are difficult to recover after being accidentally deleted. By intercepting the user's deletion operation, the file will not be immediately and permanently deleted, but will be temporarily stored in the recycle bin. The system generates a unique storage path for each file to avoid file name conflicts. At the same time, combined with the background automatic cleaning mechanism, expired files are regularly cleaned according to the set storage time to ensure the effective use of system storage resources. In addition, users can restore accidentally deleted files at any time within a specific time range to ensure the security and recoverability of data.

[0125] Accordingly, based on the method for implementing the recycle bin function applied to a parallel file system according to an embodiment of the present invention, an embodiment of the present invention further proposes a system for implementing the recycle bin function applied to a parallel file system, the system comprising the following functional modules:

[0126] A recycle bin parameter configuration module, used to configure the recycle bin parameters through the storage management interface of the parallel file system, and update the configured recycle bin parameters to the configuration file of the parallel file system;

[0127] A data deletion interception module, for responding to a data deletion request of the parallel file system, determining whether a recycle bin function is enabled, and if enabled, transferring the data corresponding to the data deletion request to a recycling process;

[0128] The recycling bin path generation and storage module is used to generate a corresponding globally unique storage path according to the current timestamp and the file name or directory name of the target data transferred to the recycling process, and move the target data to a preset storage area.

[0129] Specifically, in the embodiment of the present invention, the data deletion interception module intercepts the user's deletion request through the parallel file system IO operation layer.

[0130] Furthermore, in an embodiment of the present invention, the recycle bin parameters configured by the recycle bin parameter configuration module include a maximum data retention time, an upper limit of the recycle bin storage space, and an automatic cleanup execution interval.

[0131] Furthermore, the recycle bin function implementation system applied to the parallel file system of the embodiment of the present invention also includes the following functional modules:

[0132] The data automatic cleaning module is used to regularly scan the data in the recycle bin according to the automatic cleaning execution interval, determine whether there is data whose storage time exceeds the maximum storage time of the data, and if so, delete the corresponding data.

[0133] Furthermore, the recycle bin function implementation system applied to the parallel file system of the embodiment of the present invention also includes the following functional modules:

[0134] The data recovery module is used to determine the data to be recovered through the storage management interface of the parallel file system, and move the corresponding data from the recycle bin back to the original path.

[0135] Furthermore, in an embodiment of the present invention, when the data deletion interception module determines whether the recycle bin function is enabled, if it is not enabled, the data corresponding to the data deletion request is permanently deleted.

[0136] The recycle bin function implementation system of the embodiment of the present invention adopts the IO operation interception and redirection technology of the parallel file system, combines the timestamp to handle the naming conflict problem, and ensures the system performance and efficient use of storage space through the background automatic cleaning mechanism. The recycle bin function implementation system of the embodiment of the present invention intercepts the deletion request in the parallel file system, and determines whether to move the data to the recycle bin or delete it directly by checking whether the recycle bin function is enabled. When the data is moved to the recycle bin, the system generates a unique storage path by combining the file name and the timestamp to ensure that the file name does not conflict. During the data recovery process, the user can restore it to the original path by looking up the data name in the recycle bin. At the same time, the automatic cleaning mechanism will regularly scan the recycle bin and delete the data that exceeds the set storage time to ensure that the recycle bin does not occupy too many system resources. The recycle bin function implementation system of the embodiment of the present invention not only provides an effective solution to prevent accidental deletion of files, but also ensures the overall performance and storage space utilization of the parallel file system. Through flexible configuration parameters, users can adjust the retention policy of the recycle bin according to needs, so as to balance data recovery capabilities and storage space consumption in different scenarios.

[0137] The recycle bin function implementation system of the embodiment of the present invention provides a safe and efficient solution for file deletion management in a parallel file system, and is particularly suitable for data protection requirements in a large-scale distributed storage environment. Compared with the recycle bin mechanism in a traditional file system, the recycle bin function implementation system of the embodiment of the present invention not only implements temporary storage and recovery of files, but also takes into account issues such as naming conflicts, node synchronization, and performance impact in a distributed environment.

[0138] Although one or more embodiments of the present invention are described above, it should be known to those skilled in the art that the present invention can be implemented in any other form without departing from its subject matter and scope. Therefore, the embodiments described above are illustrative rather than restrictive, and many modifications and substitutions are obvious to those skilled in the art without departing from the spirit and scope of the present invention as defined in the appended claims.

Claims

1. A method for implementing a recycle bin function applied to a parallel file system, characterized in that: include: Configure the recycle bin parameters through the storage management interface of the parallel file system, and update the configured recycle bin parameters to the configuration file of the parallel file system; In response to the data deletion request of the parallel file system, determining whether a recycle bin function is enabled, and if enabled, transferring the data corresponding to the data deletion request to a recycling process; A corresponding globally unique storage path is generated according to the current timestamp and the file name or directory name of the target data transferred to the recycling process, and the target data is moved to a preset storage area.

2. The method for implementing the recycle bin function applied to a parallel file system according to claim 1, characterized in that: The recycle bin parameters configured through the parallel file system storage management interface include the maximum data retention time, the upper limit of the recycle bin storage space, and the automatic cleanup execution interval.

3. The method for implementing the recycle bin function applied to a parallel file system according to claim 2, characterized in that: Also includes: The data in the recycle bin is scanned regularly according to the automatic cleaning execution interval to determine whether there is data whose storage time exceeds the maximum storage time of the data. If so, the corresponding data is deleted.

4. The method for implementing the recycle bin function applied to a parallel file system according to claim 3, characterized in that: Also includes: The data to be restored is determined through the storage management interface of the parallel file system, and the corresponding data is moved from the recycle bin back to the original path.

5. The method for implementing the recycle bin function applied to a parallel file system according to claim 4, characterized in that: Also includes: When determining whether the recycle bin function is enabled, if it is not enabled, the data corresponding to the data deletion request is permanently deleted.

6. A system for implementing a recycle bin function applied to a parallel file system, characterized in that: include: A recycle bin parameter configuration module, used to configure the recycle bin parameters through the storage management interface of the parallel file system, and update the configured recycle bin parameters to the configuration file of the parallel file system; A data deletion interception module, for responding to a data deletion request of the parallel file system, determining whether a recycle bin function is enabled, and if enabled, transferring the data corresponding to the data deletion request to a recycling process; The recycling bin path generation and storage module is used to generate a corresponding globally unique storage path according to the current timestamp and the file name or directory name of the target data transferred to the recycling process, and move the target data to a preset storage area.

7. The system for realizing a recycle bin function applied to a parallel file system according to claim 6, characterized in that: The recycle bin parameters configured by the recycle bin parameter configuration module include the maximum data storage time, the upper limit of the recycle bin storage space and the automatic cleanup execution interval.

8. The system for realizing the recycling bin function applied to a parallel file system according to claim 7, characterized in that: Also includes: The data automatic cleaning module is used to regularly scan the data in the recycle bin according to the automatic cleaning execution interval, determine whether there is data whose storage time exceeds the maximum storage time of the data, and if so, delete the corresponding data.

9. The system for realizing the recycling bin function applied to a parallel file system according to claim 8, characterized in that: Also includes: The data recovery module is used to determine the data to be recovered through the storage management interface of the parallel file system, and move the corresponding data from the recycle bin back to the original path.

10. The system for realizing the recycling bin function applied to a parallel file system according to claim 9, characterized in that: When the data deletion interception module determines whether the recycle bin function is enabled, if it is not enabled, the data corresponding to the data deletion request is permanently deleted.

Citation Information

Cited By

  • Distributed file system recycle bin performance optimization method

    CN121658437A

  • A method for optimizing performance of a distributed file system recycle bin

    CN121658437B