Processing a request to update a file in a file system with update data
First Claim
1. A method for processing a request to update a file in a file system with update data, comprising:
- processing an update request to a target file that is directed to the file system, wherein the target file has a mirror copy relationship with a mirror file;
determining whether a copy operation from the target file to the mirror file is in progress;
determining bytes in the target file currently being copied to the mirror file in response to determining that the copy operation is in progress;
determining whether bytes to update in the target file follow the determined bytes in the target file currently being copied to the mirror file;
copying the update data to the bytes to update in the target file in response to determining that the bytes to update in the target file follow the determined bytes in the target file currently being copied to the mirror file, indicating that the bytes to update in the target file have not yet been copied to the mirror file as part of the copy operation from the target file to the mirror file that is in progress; and
copying the updated bytes in the target file, which were copied to the target file in response to determining that the updated bytes followed the determined bytes in the target file currently being copied, to the mirror file during subsequent progress of the copy operation when the copy operation reaches the updated bytes in the target file.
1 Assignment
0 Petitions
Accused Products
Abstract
Provided are a method, system, and program for processing a request to update a file in a file system with update data. The update request to a target file that is directed to the file system is processed, wherein the target file is in a mirror copy relationship with a mirror file. A determination is made as to whether a copy operation from the target file to the mirror file is in progress and whether bytes to update in the target file have been copied to the mirror file in response to determining that the copy operation is in progress. The update data is copied to the bytes to update in the target file in response to determining that the bytes to update have not been copied to the mirror file, wherein the update data is subsequently copied to the mirror file during subsequent progress of the copy operation.
-
Citations
25 Claims
-
1. A method for processing a request to update a file in a file system with update data, comprising:
-
processing an update request to a target file that is directed to the file system, wherein the target file has a mirror copy relationship with a mirror file; determining whether a copy operation from the target file to the mirror file is in progress; determining bytes in the target file currently being copied to the mirror file in response to determining that the copy operation is in progress; determining whether bytes to update in the target file follow the determined bytes in the target file currently being copied to the mirror file; copying the update data to the bytes to update in the target file in response to determining that the bytes to update in the target file follow the determined bytes in the target file currently being copied to the mirror file, indicating that the bytes to update in the target file have not yet been copied to the mirror file as part of the copy operation from the target file to the mirror file that is in progress; and copying the updated bytes in the target file, which were copied to the target file in response to determining that the updated bytes followed the determined bytes in the target file currently being copied, to the mirror file during subsequent progress of the copy operation when the copy operation reaches the updated bytes in the target file. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A system for processing a request to update a file with update data, comprising:
-
a processor; at least one computer readable storage media including; a file system; code executed by the processor to perform operations, the operations comprising; processing an update request to a target file that is directed to the file system, wherein the target file is in a mirror copy relationship with a mirror file; determining whether a copy operation from the target file to the mirror file is in progress; determining bytes in the target file currently being copied to the mirror file in response to determining that the copy operation is in progress; determining whether bytes to update in the target file follow the determined bytes in the target file currently being copied to the mirror file; copying the update data to the bytes to update in the target file in response to determining that the bytes to update in the target file follow the determined bytes in the target file currently being copied to the mirror file, indicating that the bytes to update in the target file have not yet been copied to the mirror file as part of the copy operation from the target file to the mirror file that is in progress; copying the updated bytes in the target file, which were copied to the target file in response to determining that the updated bytes followed the determined bytes in the target file currently being copied, to the mirror file during subsequent progress of the copy operation when the copy operation reaches the updated bytes in the target file. - View Dependent Claims (12, 13, 14, 15, 16)
-
-
17. An article of manufacture comprising a computer readable storage medium having code executed to process a request to update a file in a file system with update data and to perform operations, the operations comprising:
-
processing an update request to a target file that is directed to the file system, wherein the target file is in a mirror copy relationship with a mirror file; determining whether a copy operation from the target file to the mirror file is in progress; determining bytes in the target file currently being copied to the mirror file in response to determining that the copy operation is in progress; determining whether bytes to update in the target file follow the determined bytes in the target file currently being copied to the mirror file; copying the update data to the bytes to update in the target file in response to determining that the bytes to update in the target file follow the determined bytes in the target file currently being copied to the mirror file, indicating that the bytes to update in the target file have not yet been copied to the mirror file as part of the copy operation from the target file to the mirror file that is in progress; and copying the updated bytes in the target file, which were copied to the target file in response to determining that the updated bytes followed the determined bytes in the target file currently being copied, o the mirror file during subsequent progress of the copy operation when the copy operation reaches the updated bytes in the target file. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24, 25)
-
Specification