Method and device for cleaning file system
A file system and file technology, applied in the input/output process of data processing, electronic digital data processing, special data processing applications, etc., can solve problems such as user privacy leakage, and achieve the effect of improving security and avoiding leakage.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] In order to thoroughly clean up usage traces and avoid leakage of user privacy, an embodiment of the present invention provides a method for cleaning up a file system, see image 3 , the method includes:
[0056] 301. Open and lock a specified volume according to the received cleaning instruction; the cleaning instruction is used to indicate the specified volume to be cleaned;
[0057] 302. Clean up the volume free space of the specified volume, and unlock the specified volume after the cleaning is completed.
[0058] Wherein, cleaning up the volume free space of the specified volume specifically includes:
[0059] Clear the information occupied by deleted files in the volume free space of the specified volume.
[0060] Specifically, under the NTFS file system, clear the information occupied by deleted files in the volume free space of the specified volume, specifically including:
[0061] Traverse the master file table of the specified volume, and clear the informat...
Embodiment 2
[0070] In order to thoroughly clean up usage traces and avoid leakage of user privacy, an embodiment of the present invention provides a method for cleaning up a file system, see Figure 4 , the method includes:
[0071] 401. Receive a cleanup instruction; the cleanup instruction is used to indicate a specified volume to be cleaned up;
[0072] The clearing instruction may be triggered by a user click, or may be triggered by the file system at preset intervals when the application program is operating.
[0073] 402. Open the specified volume of the cleanup command;
[0074] The specified volume is the volume to be cleaned up. If the volume fails to be opened, it ends.
[0075] Those skilled in the art can know that, if the volume has been opened separately, at this time, when the volume is opened again, the opening of the volume will fail.
[0076] 403. Lock the specified volume;
[0077] It should be noted that, since the embodiment of the present invention has changed th...
Embodiment 3
[0092] In order to thoroughly clean up usage traces and avoid leakage of user privacy, an embodiment of the present invention provides a device for cleaning up a file system, see Figure 5 , the device consists of:
[0093] The locking module 501 is configured to open and lock the specified volume according to the received cleaning instruction; the cleaning instruction is used to indicate the specified volume to be cleaned;
[0094] The cleaning module 502 is configured to clean up free space of the specified volume, and unlock the specified volume after cleaning.
[0095] The cleaning module 502 is specifically configured to clear information occupied by deleted files in the volume free space of the specified volume.
[0096] see Figure 6 , under the NTFS file system, the cleaning module 502 includes:
[0097] The first cleaning unit 502a is configured to traverse the master file table of the specified volume, and clear the information occupied by deleted files in the mas...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 