METHOD FOR CREATING CLONE FILE, AND FILE SYSTEM ADOPTING THE SAME
First Claim
1. A file server connected to a client terminal and a storage system, the file server comprising:
- a processor; and
a memory storing a file system program for managing a file;
wherein the file system program creates a first differential file while inhibiting update of the file upon receiving a request to create a clone of the file; and
accesses the first differential file upon receiving a request to access the clone;
wherein when the access is (1) an update request;
(1a) if a disk block of the storage system is not assigned to a file block of the first differential file designated via the update request, a disk block of the storage system is assigned to the file block and update data is written thereto;
(1b) if a disk block of the storage system is assigned to the file block, update data is written thereto;
wherein when the access is (2) a read request;
(2a) if data exists in the file block of the first differential file designated via the read request, the data is read therefrom;
(2b) if there is no data in the file block, and if data exists in the file block corresponding to said file, the data is read therefrom, and when an update request of said file occurs, a second differential file is created, anda disk block of the storage system is assigned to the file block of the second differential file designated via the update request and update data is written thereto.
1 Assignment
0 Petitions
Accused Products
Abstract
In the prior art clone creating technique of a file, a management table of a snapshot and the file was created when creating the clone file, so that a considerable amount of creation time for creating the clone file and storage capacity was required. In order to solve the problems of the prior art, the present invention provides a system wherein if a request to create a clone of a file is received, a differential file is created while inhibiting update of the file, and update data is written to the differential file. Further, when a first update request is received to the differential file after creating the differential file, a management table is created. According to the invention, a large amount of clone files can be created speedily.
63 Citations
12 Claims
-
1. A file server connected to a client terminal and a storage system, the file server comprising:
-
a processor; and a memory storing a file system program for managing a file; wherein the file system program creates a first differential file while inhibiting update of the file upon receiving a request to create a clone of the file; and accesses the first differential file upon receiving a request to access the clone; wherein when the access is (1) an update request; (1a) if a disk block of the storage system is not assigned to a file block of the first differential file designated via the update request, a disk block of the storage system is assigned to the file block and update data is written thereto; (1b) if a disk block of the storage system is assigned to the file block, update data is written thereto; wherein when the access is (2) a read request; (2a) if data exists in the file block of the first differential file designated via the read request, the data is read therefrom; (2b) if there is no data in the file block, and if data exists in the file block corresponding to said file, the data is read therefrom, and when an update request of said file occurs, a second differential file is created, and a disk block of the storage system is assigned to the file block of the second differential file designated via the update request and update data is written thereto. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A computer system comprising:
-
a file server; a management terminal connected to the file server; and a storage system connected to the file server; wherein the file server comprises; a processor; and a memory storing a file system program managing a file; wherein the file system program creates a first differential file while inhibiting update of the file upon receiving a request to create a clone of the file; and accesses the first differential file upon receiving a request to access the clone; wherein when the access is (1) an update request; (1a) if a disk block of the storage system is not assigned to a file block of the first differential file designated via the update request, a disk block of the storage system is assigned to the file block and update data is written thereto; (1b) if a disk block of the storage system is assigned to the file block, update data is written thereto; wherein when the access is (2) a read request; (2a) if data exists in the file block of the first differential file designated via the read request, the data is read therefrom; (2b) if there is no data in the file block, and if data exists in the file block corresponding to said file, the data is read therefrom, and when an update request of said file occurs, a second differential file is created, and a disk block of the storage system is assigned to the file block of the second differential file designated via the update request and update data is written thereto. - View Dependent Claims (12)
-
Specification