File sharing system and file sharing method
First Claim
1. A file sharing system comprising:
- a master server configured to provide one or more master file systems each including a directory and a file each being an object; and
slave servers each configured to acquire a copy file system of a part or whole of a master file system provided by the master server, wherein;
a first slave server of the slave servers includes copy management information including entries each associating a master file system identifier, an identifier of a version of a master file system identified by the master file system identifier and an identifier of a slave server which checked out of a copy file system of a part or whole of the master file system identified by the master file system identifier;
the first slave server acquires a first copy file system of a part of a first master file system in the one or more master file systems, the first copy file system including a stub-state object;
the first slave server, using an identifier of the first master file system and an identifier of a version of the first master file system, searches the copy management information for a slave server to be queried regarding cached information for materializing the stub-state object and performs the searches simultaneously to verify the presence or absence of the cached information and issues an object acquisition to the slave server being the first to return a cache present designation, and the number of slave servers to be queried being based on a version of the copy management information;
on condition that the search result indicates a slave server to be queried of the slave servers, the first slave server queries the slave server to be queried regarding the cached information for materialization;
on condition that the slave server to be queried includes the information for materialization, the first slave server materializes the stub-state object using the information for materialization acquired from the slave server to be queried; and
the first slave server synchronizes the copy management information thereon and other copy management information on one of the master server and the slave servers in a checkout process of the first copy file system;
wherein, on condition that the information for materialization is not acquired from any slave server in the copy management information, the first slave server acquires the information for materialization from the master file server of the first master file system.
1 Assignment
0 Petitions
Accused Products
Abstract
In a computer system according to an embodiment of the present invention, a first slave server includes copy management information associating a master file system identifier with an identifier of a slave server including a copy of the master file system identified by the master file system identifier. The first slave server acquires a copy of a part of a master file system. The copy includes a stub-state object (file or directory). The first slave server searches the copy management information for a slave server to be queried regarding information for materializing the stub-state object. If the slave server to be queried includes the information for materialization, the first slave server materializes the stub-state object using the information for materialization acquired from the queried slave server.
15 Citations
13 Claims
-
1. A file sharing system comprising:
-
a master server configured to provide one or more master file systems each including a directory and a file each being an object; and slave servers each configured to acquire a copy file system of a part or whole of a master file system provided by the master server, wherein; a first slave server of the slave servers includes copy management information including entries each associating a master file system identifier, an identifier of a version of a master file system identified by the master file system identifier and an identifier of a slave server which checked out of a copy file system of a part or whole of the master file system identified by the master file system identifier; the first slave server acquires a first copy file system of a part of a first master file system in the one or more master file systems, the first copy file system including a stub-state object; the first slave server, using an identifier of the first master file system and an identifier of a version of the first master file system, searches the copy management information for a slave server to be queried regarding cached information for materializing the stub-state object and performs the searches simultaneously to verify the presence or absence of the cached information and issues an object acquisition to the slave server being the first to return a cache present designation, and the number of slave servers to be queried being based on a version of the copy management information; on condition that the search result indicates a slave server to be queried of the slave servers, the first slave server queries the slave server to be queried regarding the cached information for materialization; on condition that the slave server to be queried includes the information for materialization, the first slave server materializes the stub-state object using the information for materialization acquired from the slave server to be queried; and the first slave server synchronizes the copy management information thereon and other copy management information on one of the master server and the slave servers in a checkout process of the first copy file system; wherein, on condition that the information for materialization is not acquired from any slave server in the copy management information, the first slave server acquires the information for materialization from the master file server of the first master file system. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A file sharing method, in a computer system comprising a master server configured to provide one or more master file systems each including a directory and a file each being an object, and slave servers each configured to acquire a copy file system of a part or whole of a master file system provided by the master server, for a first slave server to acquire a copy file system of a part or whole of a master file system in the one or more master file systems, the file sharing method comprising:
-
acquiring, by the first slave server, a first copy file system of a part of a first master file system, the first copy file system including a stub-state object, referring to, by the first slave server, copy management information including entries each associating a master file system identifier, an identifier of a version of a master file system identified by the master file system identifier and an identifier of a slave server which checked out of a copy file system of a part or whole of the master file system identified by the master file system identifier, using, by the first slave server, an identifier of the first master file system and an identifier of a version of the first master file system, and searching the copy management information for a slave server to be queried regarding cached information for materializing the stub-state object, and performing the searches simultaneously to verify the presence or absence of the cached information and issuing an object acquisition to the slave server being the first to return a cache present designation, and the number of slave servers to be queried being based on a version of the copy management information; receiving, by the first slave server, a query regarding information for materializing the stub-state object; and returning, by the first slave server, a response indicating that the first slave server does not include the information for materialization on condition that the queried object has been updated; on condition that the search result indicates a slave server to be queried of slave servers, querying, by the first slave server, the slave server to be queried regarding the cached information for materialization; on condition that the slave server to be queried includes the information materialization, materializing, by the first slave server, the stub-state object using the information for materialization acquired from the slave server to be queried; and the first slave server synchronizes the copy management information thereon and other copy management information on one of the master server and the slave servers in a checkout process of the first copy file system. - View Dependent Claims (12, 13)
-
Specification