Fast and efficient method for deleting very large files from a filesystem
First Claim
Patent Images
1. An apparatus for deleting data files from a memory, the apparatus comprising:
- a CPU; and
a memory, comprising;
a plurality of data blocks;
a plurality of inodes;
a plurality of files, wherein each of the plurality of files is associated with one or more of the plurality of data blocks and with one of the plurality of inodes; and
a garbage collection inode;
wherein the CPU is operable to delete one of the plurality of files from the memory by copying the address of the plurality of data blocks associated with the one of the plurality of files to be deleted from the inode associated with the one of the plurality of files to be deleted to the garbage collection inode.
4 Assignments
0 Petitions
Accused Products
Abstract
In the current invention, a method and apparatus for efficiently deleting large files is described. This is done by having a special inode for pointing to data blocks to be freed, and subsequently freeing the data blocks from the special inode in a controlled manner.
40 Citations
11 Claims
-
1. An apparatus for deleting data files from a memory, the apparatus comprising:
-
a CPU; and a memory, comprising; a plurality of data blocks; a plurality of inodes; a plurality of files, wherein each of the plurality of files is associated with one or more of the plurality of data blocks and with one of the plurality of inodes; and a garbage collection inode; wherein the CPU is operable to delete one of the plurality of files from the memory by copying the address of the plurality of data blocks associated with the one of the plurality of files to be deleted from the inode associated with the one of the plurality of files to be deleted to the garbage collection inode. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method for deleting a file in a memory, the method comprising:
-
(a) selecting a first inode representing the file to be deleted; (b) designating a second inode as a garbage collection inode, wherein the garbage collection inode only points to files to be deleted; (c) copying the address representing the location of a list of pointers to data blocks that compose the file to be deleted from the first inode to the garbage collection inode; (d) zeroing the inode; and (e) iterating through the list of pointers in the garbage collection inode and freeing the data blocks associated with each of the pointers in the list of pointers. - View Dependent Claims (9, 10)
-
-
11. A computer program product comprising a computer usable medium having computer program logic recorded thereon for enabling a processor to delete a file in memory, the computer program logic comprising:
-
selecting means for enabling a processor to select an inode representing the file to be deleted; copying means for enabling a processor to copy the address representing the location of a list of pointers to data blocks that compose the file to be deleted from the inode to a garbage collection inode; and
deletion means for enabling a processor to delete the file in the garbage collection inode.
-
Specification