Preserving file metadata during atomic save operations
First Claim
1. A method of preserving file metadata associated with an atomic save operation, comprising:
- on a device;
obtaining log information regarding a plurality of file system operations, wherein the plurality of file system operations include create, delete, and/or rename operations on one or more files in a file system;
identifying in the log two or more file system operations that together comprise an atomic save of a particular file of the one or more files;
wherein the two or more file system operations include a first operation involving a first version of the particular file and a second operation involving a second version of the particular file, the second version subsequent to the first version, andwherein the first version has first metadata and the second version has second metadata, distinct from the first metadata; and
in accordance with the identification of the two or more file system operations as comprising said atomic save, replacing at least a portion of the second metadata with at least a portion of the first metadata, including replacing a globally unique file identifier and/or file access permissions;
wherein,prior to the replacing, the second metadata includes a respective globally unique file identifier and/or respective file access permissions that differ from a respective globally unique file identifier and/or respective file access permissions in the first metadata; and
replacing the at least a portion of the second metadata includes swapping between the second metadata and the first metadata a respective subset of the second metadata with a respective subset of the first metadata.
1 Assignment
0 Petitions
Accused Products
Abstract
A method of preserving file metadata associated with an edited file, performed on a client device, includes storing in a log information denoting a plurality of create, delete, and rename operations on one or more files in a file system, and determining when two or more operations denoted in the log, including an operation involving a first file and another operation involving a second file, comprise an atomic save of a respective file, the first file comprising a first version of the respective file, and the second file comprising a second version of the respective file, the first file and second file each having associated metadata. The method further includes associating a subset of the metadata of the first file with the second file, such that at least one of a globally unique file identifier and file access permissions associated with the first file become associated with the second file.
-
Citations
21 Claims
-
1. A method of preserving file metadata associated with an atomic save operation, comprising:
on a device; obtaining log information regarding a plurality of file system operations, wherein the plurality of file system operations include create, delete, and/or rename operations on one or more files in a file system; identifying in the log two or more file system operations that together comprise an atomic save of a particular file of the one or more files; wherein the two or more file system operations include a first operation involving a first version of the particular file and a second operation involving a second version of the particular file, the second version subsequent to the first version, and wherein the first version has first metadata and the second version has second metadata, distinct from the first metadata; and in accordance with the identification of the two or more file system operations as comprising said atomic save, replacing at least a portion of the second metadata with at least a portion of the first metadata, including replacing a globally unique file identifier and/or file access permissions; wherein, prior to the replacing, the second metadata includes a respective globally unique file identifier and/or respective file access permissions that differ from a respective globally unique file identifier and/or respective file access permissions in the first metadata; and replacing the at least a portion of the second metadata includes swapping between the second metadata and the first metadata a respective subset of the second metadata with a respective subset of the first metadata. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
12. A system for preserving metadata associated with an edited file, comprising:
-
one or more processors; memory; and one or more programs stored in the memory, the one or more programs comprising instructions to; obtain log information regarding a plurality of file system operations, wherein the plurality of file system operations include create, delete, and/or rename operations on one or more files in a file system; identify in the log two or more file system operations that together comprise an atomic save of a particular file of the one or more files; wherein the two or more file system operations include a first operation involving a first version of the particular file and a second operation involving a second version of the particular file, the second version subsequent to the first version, and wherein the first version has first metadata and the second version has second metadata, distinct from the first metadata; and in accordance with the identification of the two or more file system operations as comprising said atomic save, replace at least a portion of the second metadata with at least a portion of the first metadata, including replacing a globally unique file identifier and/or file access permissions; wherein, prior to the replacing, the second metadata includes a respective globally unique file identifier and/or respective file access permissions that differ from a respective globally unique file identifier and/or respective file access permissions in the first metadata; and replacing the at least a portion of the second metadata includes swapping between the second metadata and the first metadata a respective subset of the second metadata with a respective subset of the first metadata. - View Dependent Claims (13, 14, 15, 16)
-
-
17. A non-transitory computer readable storage medium storing one or more programs configured for execution by one or more processors of a computer system for preserving metadata associated with an edited file, the one or more programs comprising instructions to:
-
obtain log information regarding a plurality of file system operations, wherein the plurality of file system operations include create, delete, and/or rename operations on one or more files in a file system; identify in the log two or more file system operations that together comprise an atomic save of a particular file of the one or more files; wherein the two or more file system operations include a first operation involving a first version of the particular file and a second operation involving a second version of the particular file, the second version subsequent to the first version, and wherein the first version has first metadata and the second version has second metadata, distinct from the first metadata; and in accordance with the identification of the two or more file system operations as comprising said atomic save, replace at least a portion of the second metadata with at least a portion of the first metadata, including replacing a globally unique file identifier and/or file access permissions; wherein, prior to the replacing, the second metadata includes a respective globally unique file identifier and/or respective file access permissions that differ from a respective globally unique file identifier and/or respective file access permissions in the first metadata; and replacing the at least a portion of the second metadata includes swapping between the second metadata and the first metadata a respective subset of the second metadata with a respective subset of the first metadata. - View Dependent Claims (18, 19, 20, 21)
-
Specification