Method and system of detecting file system namespace changes and restoring consistency
First Claim
1. A computer-readable storage medium having computer-executable instructions encoded thereon which, when executed within a computing environment, implement a method comprising:
- persisting metadata maintained by a filter in a computer-readable storage medium, wherein the metadata comprises one or more object records including information associated with an object of a file system;
attaching the filter to a volume of the file system;
determining whether the volume has been restored;
selecting an object record from the metadata;
when the volume has been restored, attempting to open the object associated with the object record by name;
when the volume has not been restored, attempting to open the object associated with the object record by file ID;
updating the metadata by;
i—
when opening the object by file ID is successful, determining if the object'"'"'s name has changed;
ii—
when the name has changed, updating the object'"'"'s name in the metadata to match the object'"'"'s name on the volume;
iii—
when opening the object by file ID is unsuccessful, attempting to open the object using the object'"'"'s name;
iv—
when opening the object using the object'"'"'s name is successful, updating the file ID of the object in the metadata to match the file ID of the object on the volume; and
v—
when opening the object using the object'"'"'s name is unsuccessful, deleting the object record from metadata; and
after updating the metadata, then;
a—
determining whether another object record exists in the metadata which has not been selected; and
b—
when another object record exists in the metadata which has not been selected, selecting the another object record.
2 Assignments
0 Petitions
Accused Products
Abstract
Method and system for maintaining namespace consistency between selected objects maintained by a file system and a filter associated therewith. Metadata regarding selected objects of a file system is maintained by a filter while the filter is attached to the file system and persisted in non-volatile storage. The namespace of the file system may be changed while the filter is unattached from the file system. Afterwards, when the filter is attached to the file system, the namespace of the filter is synchronized with the namespace of the file system for the selected objects.
-
Citations
33 Claims
-
1. A computer-readable storage medium having computer-executable instructions encoded thereon which, when executed within a computing environment, implement a method comprising:
-
persisting metadata maintained by a filter in a computer-readable storage medium, wherein the metadata comprises one or more object records including information associated with an object of a file system; attaching the filter to a volume of the file system; determining whether the volume has been restored; selecting an object record from the metadata; when the volume has been restored, attempting to open the object associated with the object record by name; when the volume has not been restored, attempting to open the object associated with the object record by file ID; updating the metadata by; i—
when opening the object by file ID is successful, determining if the object'"'"'s name has changed;ii—
when the name has changed, updating the object'"'"'s name in the metadata to match the object'"'"'s name on the volume;iii—
when opening the object by file ID is unsuccessful, attempting to open the object using the object'"'"'s name;iv—
when opening the object using the object'"'"'s name is successful, updating the file ID of the object in the metadata to match the file ID of the object on the volume; andv—
when opening the object using the object'"'"'s name is unsuccessful, deleting the object record from metadata; andafter updating the metadata, then; a—
determining whether another object record exists in the metadata which has not been selected; andb—
when another object record exists in the metadata which has not been selected, selecting the another object record. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. In a computing environment, a method, comprising:
-
persisting metadata associated with a filter in a computer-readable storage medium, wherein the metadata includes a first namespace associated with a first set of objects of a volume, and wherein the volume includes a second namespace of a second set of objects of the volume; attaching the filter to the volume; determining whether the volume has been restored; when the volume has not been restored, attempting to open each object included in the first namespace with the object'"'"'s file ID; when the volume has been restored, attempting to open each object included in the first namespace with the object'"'"'s name; for each object included in the first namespace, determining that the second namespace was changed and synchronizing the first namespace with the second namespace by; i—
when opening the object by file ID is successful, determining if the object'"'"'s name has changed;ii—
when the name has changed, updating the object'"'"'s name in the metadata to match the object'"'"'s name on the volume;iii—
when opening the object by file ID is unsuccessful, attempting to open the object using the object'"'"'s name;iv—
when opening the object using the object'"'"'s name is successful, updating the file ID of the object in the metadata to match the file ID of the object on the volume;v—
when opening the object using the object'"'"'s name is unsuccessful, deleting the object record from metadata. - View Dependent Claims (20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33)
-
Specification