System and method for network file system server replication using reverse path lookup
First Claim
1. A system configured to replicate a network file system, the system comprising:
- a master file system;
a master host having a hardware processor system configured to;
receive a request to apply a change to the master file system, and receive a file handle that represents an object associated with the change to the master file system;
interpret the file handle to determine the object that the file handle represents, apply the change to the object within the master file system, and determine a full path name that the object has within the master file system based on parent data that the object has within the master file system; and
transmit metadata that describes the change to the master file system and a mapping between an inode number that identifies the object within the master file system and the full path name associated with the object, to a replica host configured to replicate the change using the mapping and the metadata.
2 Assignments
0 Petitions
Accused Products
Abstract
The system and method described herein may use reverse path lookup to build mappings between file handles that represent network file system objects and full path names associated therewith and distinguish hard links between different file system objects having the same identifier with different parents or file names. The mappings and information distinguishing the hard links may then be cached to enable replicating changes to the file system. For example, a server may search the cached information using a file handle associated with a changed file system object to obtain the file name and full path name associated therewith. The server may then send the file name and full path name and metadata describing how the file system object was changed to a replica host, which may then replicate the change to the file system object.
25 Citations
20 Claims
-
1. A system configured to replicate a network file system, the system comprising:
-
a master file system; a master host having a hardware processor system configured to; receive a request to apply a change to the master file system, and receive a file handle that represents an object associated with the change to the master file system; interpret the file handle to determine the object that the file handle represents, apply the change to the object within the master file system, and determine a full path name that the object has within the master file system based on parent data that the object has within the master file system; and transmit metadata that describes the change to the master file system and a mapping between an inode number that identifies the object within the master file system and the full path name associated with the object, to a replica host configured to replicate the change using the mapping and the metadata. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method to replicate a network file system, the method comprising:
-
receiving, at a master host, a request to apply a change to a master file system, wherein the request includes a file handle that represents an object associated with the change to the master file system; interpreting the file handle to determine the object that the file handle represents at the master host, wherein the master host interprets the file handle to apply the change to the object within the master file system and determine a full path name that the object has within the master file system based on parent data that the object has within the master file system; and transmitting metadata that describes the change to the master file system and a mapping between an inode number that identifies the object within the master file system and the full path name associated with the object, from the master host to a replica host, wherein the replica host replicates the change using the transmitted mapping and the transmitted metadata. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A computer program product comprising:
a non-transitory computer readable storage medium comprising computer-readable program code executable by a hardware processor embodied therewith to replicate a network file system, the computer readable program code comprising; computer readable program code configured to receive, at a master host, a request to apply a change to a master file system, wherein the request includes a file handle that represents an object associated with the change to the master file system; computer readable program code configured to interpret the file handle to determine the object that the file handle represents at the master host, wherein the master host interprets the file handle to apply the change to the object within the master file system and determines a full path name that the object has within the master file system based on parent data that the object has within the master file system; and computer readable program code configured to transmit metadata that describes the change to the master file system and a mapping between an inode number that identifies the object within the master file system and the full path name associated with the object, from the master host to a replica host, wherein the replica host replicates the change using the transmitted mapping and the transmitted metadata. - View Dependent Claims (20)
Specification