Manipulation of zombie files and evil-twin files
First Claim
1. A method comprising:
- maintaining in a computer system a file system that includes a live filespace accessible to users and a zombie filespace not accessible to users;
in response to a request to delete at least a portion of a file stored in the live filespace, moving blocks storing said portion of the file from the live filespace to the zombie filespace and deleting at least some of the blocks from the zombie filespace before a scheduled consistency checkpoint of the file system;
recording said moving and deleting in a persistent memory; and
in response to a service interruption in the computer system, recovering the file system in the computer system by replaying said moving and deleting based on information stored in the persistent memory.
1 Assignment
0 Petitions
Accused Products
Abstract
File system is capable of performing long operations, such as deletions and truncations of long files, in a deterministic and atomic manner with regard to its recorded consistency points. The system includes both live filespace accessible to users, and user-inaccessible zombie filespace. In representative embodiments, the system includes a file deletion manager and a truncation manager capable of operating on files in the zombie filespace. Changes to the zombie filespace can be recorded in persistent memory. After a power failure or a similar event, the system can use the recorded changes to replay operations on the files in the zombie filespace, facilitating recovery. Zombie space can be sized dynamically, enabling the deletion manager to request enlargement of the zombie filespace. In some embodiments, files are transferred to the zombie filespace before links to the files'"'"' blocks in the live filespace are broken, and before performing operations on the files.
67 Citations
32 Claims
-
1. A method comprising:
-
maintaining in a computer system a file system that includes a live filespace accessible to users and a zombie filespace not accessible to users; in response to a request to delete at least a portion of a file stored in the live filespace, moving blocks storing said portion of the file from the live filespace to the zombie filespace and deleting at least some of the blocks from the zombie filespace before a scheduled consistency checkpoint of the file system; recording said moving and deleting in a persistent memory; and in response to a service interruption in the computer system, recovering the file system in the computer system by replaying said moving and deleting based on information stored in the persistent memory. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A method comprising:
-
maintaining in a computer system a file system that includes a live filespace accessible to users and a zombie filespace not accessible to users; in response to a request to delete a file having attached data elements from the live filespace, moving blocks storing the file and the attached data elements from the live filespace to the zombie filespace, and deleting at least some of the blocks from the zombie filespace before a scheduled consistency checkpoint of the file system; recording said moving and deleting in a persistent memory; and in response to a service interruption in the computer system, recovering the file system in the computer system by replaying said moving and deleting based on information stored in the persistent memory. - View Dependent Claims (13, 14)
-
-
15. A machine-readable medium having instructions, which when executed by a processor in a machine, cause the machine to perform a method, the method comprising:
-
maintaining in a computer system a file system that includes a live filespace accessible to users and a zombie filespace not accessible to users; in response to a request to delete a file from the live filespace, moving blocks storing the file from the live filespace to the zombie filespace and deleting at least some of the blocks from the zombie filespace before a scheduled consistency checkpoint of the file system; recording said moving and deleting in a persistent memory; and in response to a service interruption in the computer system, recovering the file system in the computer system by replaying said moving and deleting based on information stored in the persistent memory. - View Dependent Claims (16, 17, 18, 19)
-
-
20. A machine-readable medium having instructions, which when executed by a processor in a machine, cause the machine to perform a method, the method comprising:
-
maintaining in a computer system a file system that includes a live filespace accessible to users and a zombie filespace not accessible to users; in response to a request to truncate a file stored in the live filespace, moving blocks storing a portion of the file to be truncated from the live filespace to the zombie filespace and deleting at least some of the blocks from the zombie filespace before a scheduled consistency checkpoint of the file system; recording changes of the live filespace and the zombie filespace caused by said moving and deleting in a persistent memory; and in response to a service interruption in the computer system, recovering the file system in the computer system by replaying said moving and deleting based on information stored in the persistent memory. - View Dependent Claims (21, 22, 23, 24)
-
-
25. A storage server comprising:
-
a processor; a network interface through which to communicate with a client; a storage interface through which to access a plurality of mass storage devices on behalf of the client; and a memory coupled to the processor, the memory storing instructions which, when executed by the processor, cause the storage server to perform a process comprising; maintaining in a computer system a file system that includes a live filespace accessible to the client and a zombie filespace not accessible to the client; in response to a request to delete at least a portion of a file stored in the live filespace, moving blocks storing said portion of the file from the live filespace to the zombie filespace and deleting at least some of the blocks from the zombie filespace before a scheduled consistency checkpoint of the file system; recording said moving and deleting in a persistent memory; and in response to a service interruption in the computer system, recovering the file system in the computer system by replaying said moving and deleting based on information stored in the persistent memory. - View Dependent Claims (26, 27, 28, 29, 30, 31, 32)
-
Specification