File cloning across different filesets
First Claim
1. A method comprising:
- determining, by a processor, that a write request indicates a clone file that was cloned from a file in a first fileset, wherein the clone file is of a second fileset and a clustered file system comprises the first fileset and the second fileset;
determining a data block of the clone file affected by the write request;
determining that the data block at a current location cannot be modified;
in response to a determination that the data block at the current location cannot be modified,implementing the write request with respect to the data block at a different location; and
indicating that the data block at the different location can be modified for subsequent write requests that indicate the clone file;
wherein the clone indications comprises at least one of a clone flag and a clone creation generation;
causing a snapshot of at least the file in the first fileset to be created in response to a request to clone the file from the first fileset into the second fileset; and
associating the snapshot with the clone file; and
preventing removal or deletion of the snapshot while the clone file is associated with the snapshot.
1 Assignment
0 Petitions
Accused Products
Abstract
A method includes determining, by a processor, that a write request indicates a clone file that was cloned from a file in a first fileset. The clone file is of a second fileset and a clustered file system comprises the first fileset and the second fileset. A data block of the clone file affected by the write request is determined. The method includes determining that the data block at a current location cannot be modified. In response to a determination that the data block at the current location cannot be modified, the method includes implementing the write request with respect to the data block at a different location and indicating that the data block at the different location can be modified for subsequent write requests that indicate the clone file.
9 Citations
10 Claims
-
1. A method comprising:
-
determining, by a processor, that a write request indicates a clone file that was cloned from a file in a first fileset, wherein the clone file is of a second fileset and a clustered file system comprises the first fileset and the second fileset; determining a data block of the clone file affected by the write request; determining that the data block at a current location cannot be modified; in response to a determination that the data block at the current location cannot be modified, implementing the write request with respect to the data block at a different location; and indicating that the data block at the different location can be modified for subsequent write requests that indicate the clone file; wherein the clone indications comprises at least one of a clone flag and a clone creation generation; causing a snapshot of at least the file in the first fileset to be created in response to a request to clone the file from the first fileset into the second fileset; and associating the snapshot with the clone file; and preventing removal or deletion of the snapshot while the clone file is associated with the snapshot. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
Specification