Patent ID: 9104685
Filing Date: 2015-08-11
Classification: G06F

Abstract:
1. A method for clearing up a file system, the method comprising: opening and locking a volume according to a clearing-up instruction; wherein the clearing-up instruction indicates the volume which is to be cleared up; clearing up garbage information on a disk corresponding to the volume; and unlocking the volume after clearing up the garbage information on the disk corresponding to the volume; wherein clearing up the garbage information on the disk corresponding to the volume comprises determining whether the volume is formatted and whether no file is added or deleted after the volume is formatted; wherein the volume is specified by the clearing-up instructions; clearing up volume free space in the disk corresponding to the volume if the volume is formatted and no file is added or deleted after the volume is formatted, and clearing up the information occupied by the deleted file in the disk corresponding to the volume and clearing up the volume free space in the disk corresponding to the volume if the volume is not formatted or a file is added or deleted, wherein clearing up the volume free space in the disk corresponding to the volume comprises continuously creating temporary files on the disk corresponding to the volume to overwrite data on the volume until a failure occurs, and clearing up the temporary files; the volume free space is space marked as free in a bit table and the information occupied by the deleted file comprises a name of the deleted file, time of the deleted file and content of the deleted file.