Providing a snapshot of a subject of a file system
First Claim
1. A method for restoring a snapshot, wherein a plurality of snapshots are available, comprising:
- receiving a request to restore a desired snapshot;
determining, for each inode in the desired snapshot, whether a corresponding inode in a file system is allocated to a file or directory that is part of the desired snapshot;
restoring, in response to determining that the corresponding inode in the file system is allocated to a file or directory that is part of the desired snapshot, the inode in the desired snapshot to the corresponding inode in the file system;
restoring, in response to determining that the corresponding inode in the file system is not allocated to a file or directory that is not part of the desired snapshot, the inode in the desired snapshot to an unallocated inode in the file system; and
updating and providing a directory entry for the corresponding inode in the file system to reference the previously unallocated inode.
3 Assignments
0 Petitions
Accused Products
Abstract
A system, method and computer readable medium for providing a snapshot of a subset of a file system. A first snapshot of a first set of source files in a file system is generated. The first snapshot includes an inode corresponding to each source file in the first set of files. Stored in each inode is a first identifier associated with the first set of files and a second identifier associated with the time of the first snapshot. Next, a second snapshot of a second set of source files is taken. The second snapshot includes an inode corresponding to each source file in the second set of files. Stored in each inode are a first identifier and a second identifier. Subsequent snapshots are taken every first period and every second period for the first set of files and the second set of files, respectively.
63 Citations
6 Claims
-
1. A method for restoring a snapshot, wherein a plurality of snapshots are available, comprising:
-
receiving a request to restore a desired snapshot; determining, for each inode in the desired snapshot, whether a corresponding inode in a file system is allocated to a file or directory that is part of the desired snapshot; restoring, in response to determining that the corresponding inode in the file system is allocated to a file or directory that is part of the desired snapshot, the inode in the desired snapshot to the corresponding inode in the file system; restoring, in response to determining that the corresponding inode in the file system is not allocated to a file or directory that is not part of the desired snapshot, the inode in the desired snapshot to an unallocated inode in the file system; and updating and providing a directory entry for the corresponding inode in the file system to reference the previously unallocated inode. - View Dependent Claims (4)
-
-
2. A computer readable medium including computer instructions for restoring a snapshot, wherein a plurality of snapshots are available, the computer instructions comprising instructions for:
-
receiving a request to restore a desired snapshot; determining, for each inode in the desired snapshot, whether a corresponding inode in a file system is available; restoring, in response to determining that the corresponding inode in the file system is available, the inode in the desired snapshot to the corresponding inode in the file system; restoring, in response to determining that the corresponding inode in the file system is not available, the inode in the desired snapshot to an unallocated inode in the file system; and updating and providing a directory entry for the corresponding inode in the file system to reference the previously unallocated inode. - View Dependent Claims (5)
-
-
3. A system for restoring a snapshot, wherein a plurality of snapshots are available, comprising:
-
means for receiving a request to restore a desired snapshot; means for determining, for each inode in the desired snapshot, whether a corresponding inode in a file system is available; means for restoring, operating in response to a determination by the means for determining that the corresponding inode in the file system is available, the inode in the desired snapshot to the corresponding inode in the file system; means for restoring, operating in response to a determination by the means for determining that the corresponding inode in the file system is not available, the inode in the desired snapshot to an unallocated inode in the file system; and means for updating and means for providing a directory entry for the corresponding inode in the file system to reference the previously unallocated inode. - View Dependent Claims (6)
-
Specification