Atomic renaming and moving of data files while permitting lock-free look-ups
First Claim
1. A computer-implemented method comprising:
- renaming a data file of a computer system while permitting lock-free look-ups to the data file by utilizing a temporary record to which look-ups to the data file are directed while the data file is being renamed, comprising;
creating a temporary record within a hash chain encompassing a record for the data file and corresponding to a location of the data file within the computer file system;
linking the temporary record within the hash chain so that the temporary record points to a before record to which the record for the data file points and to an after record to which the record for the data file points;
renaming the record for the data file with a new name; and
,removing the temporary record from the hash chain,wherein while the temporary record exists within the hash chain, look-ups of the data file resolve to the temporary record, such that the temporary record causes the look-ups to wait until the record for the data file has been renamed and the temporary record removed.
1 Assignment
0 Petitions
Accused Products
Abstract
Atomic renaming and moving of data files, while permitting lock-free look-ups to the data files, is disclosed. A temporary record may be created within a hash chain encompassing a record for a data file and corresponding to a location of the data file within a computer file system. The temporary record is linked within the hash chain so that the temporary record points to the same records to which the record for the data file points. The record for the data file is renamed with a new name, and/or moved to a new location within the computer file system, and the temporary record is removed from the hash chain. Before the temporary record is removed, look-ups of the data file resolve to the temporary record, the temporary record causing the look-ups to wait until the record for the data file has been renamed and/or moved and the temporary record removed.
-
Citations
15 Claims
-
1. A computer-implemented method comprising:
-
renaming a data file of a computer system while permitting lock-free look-ups to the data file by utilizing a temporary record to which look-ups to the data file are directed while the data file is being renamed, comprising; creating a temporary record within a hash chain encompassing a record for the data file and corresponding to a location of the data file within the computer file system; linking the temporary record within the hash chain so that the temporary record points to a before record to which the record for the data file points and to an after record to which the record for the data file points; renaming the record for the data file with a new name; and
,removing the temporary record from the hash chain, wherein while the temporary record exists within the hash chain, look-ups of the data file resolve to the temporary record, such that the temporary record causes the look-ups to wait until the record for the data file has been renamed and the temporary record removed. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer-implemented method comprising:
-
atomically moving a data file from one location to another location within a computer file system while permitting lock-free look-ups to the data file by utilizing a temporary record to which look-ups to the data file are directed while the data file is being moved, wherein atomically moving the data file from one location to another location within the computer file system comprises atomically moving the data file from one location to another location within the computer file system such that once a look-up of the data file within an old location of the data file necessarily fails, any subsequent look-up of the data file within a new location of the data file necessarily succeeds, and such that once a look-up of the data file within the new location necessarily succeeds, any subsequent look-up of the data file within the old location necessarily fails, such that in atomically moving the data file, the method renames the data file of the computer system while permitting lock-free look-ups to the data file by utilizing the temporary record to which look-ups to the data file are directed while the data file is being renamed. - View Dependent Claims (8, 9)
-
-
10. A computer-implemented method comprising:
-
creating a temporary record within a hash chain encompassing a record for a data file and corresponding to a location of the data file within a computer file system; linking the temporary record within the hash chain so that the temporary record points to a before record to which the record for the data file points and to an after record to which the record for the data file points; renaming the record for the data file with a new name; and
,removing the temporary record from the hash chain, wherein while the temporary record exists within the hash chain, look-ups of the data file are directed to the temporary record, such that the temporary record causes the look-ups to wait until the record for the data file has been renamed and the temporary record has been removed, such that the method renames the data file of the computer system while permitting lock-free look-ups to the data file by utilizing the temporary record to which look-ups to the data file are directed while the data file is being renamed. - View Dependent Claims (11, 12)
-
-
13. A computer-implemented method comprising:
-
creating a temporary record within a hash chain encompassing a record for a data file and corresponding to a location of the data file within a computer file system; linking the temporary record within the hash chain so that the temporary record points to a before record to which the record for the data file points and to an after record to which the record for the data file points; moving the record for the data file to another hash chain corresponding to a new location of the data file within the computer file system; and
,removing the temporary record from the hash chain, wherein while the temporary record exists within the hash chain, look-ups of the data file are directed to the temporary record, such that the temporary record causes the look-ups to wait until the record for the data file has been moved and the temporary record removed, such that in atomically moving the data file, the method renames the data file of the computer system while permitting lock-free look-ups to the data file by utilizing the temporary record to which look-ups to the data file are directed while the data file is being renamed. - View Dependent Claims (14, 15)
-
Specification