CONCURRENT ACCESS AND TRANSACTIONS IN A DISTRIBUTED FILE SYSTEM
First Claim
1. A method for performing a transaction in a distributed file system, the method comprising:
- in response to a request to perform a file system operation, identifying a first set of file system objects modified in performing the requested file system operation;
inserting an update intent corresponding to the requested file system operation into an inode associated with each identified file system object, wherein the update intent specifies an ordered sequence of inodes associated with the requested file system operation; and
for each inode;
modifying either the inode or the file system object corresponding to the inode as specified by the update intent in that inode, andafter modifying the file system object corresponding to the inode, removing the update intent from that inode.
2 Assignments
0 Petitions
Accused Products
Abstract
Embodiments described herein provide techniques for maintaining consistency in a distributed system (e.g., a distributed secondary storage system). According to one embodiment of the present disclosure, a first set of file system objects included in performing the requested file system operation is identified in response to a request to perform a file system operation. An update intent corresponding to the requested file system operation is inserted into an inode associated with each identified file system object. Each file system object corresponding to the inode is modified as specified by the update intent in that inode. After modifying the file system object corresponding to the inode, the update intent is removed from that inode.
-
Citations
23 Claims
-
1. A method for performing a transaction in a distributed file system, the method comprising:
-
in response to a request to perform a file system operation, identifying a first set of file system objects modified in performing the requested file system operation; inserting an update intent corresponding to the requested file system operation into an inode associated with each identified file system object, wherein the update intent specifies an ordered sequence of inodes associated with the requested file system operation; and for each inode; modifying either the inode or the file system object corresponding to the inode as specified by the update intent in that inode, and after modifying the file system object corresponding to the inode, removing the update intent from that inode. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A non-transitory computer-readable medium storing instructions that, when executed by a processor, cause the processor to perform an operation for performing a transaction in a distributed file system, the operation comprising:
-
in response to a request to perform a file system operation, identifying a first set of file system objects modified in performing the requested file system operation; inserting an update intent corresponding to the requested file system operation into an inode associated with each identified file system object, wherein the update intent specifies an ordered sequence of inodes associated with the requested file system operation; and for each inode; modifying either the inode or the file system object corresponding to the inode as specified by the update intent in that inode, and after modifying the file system object corresponding to the inode, removing the update intent from that inode. - View Dependent Claims (10, 11, 12, 13)
-
-
14. A system comprising:
-
a processor; and a memory storing program code, which, when executed on the processor performs an operation for performing a transaction in a distributed file system, the operation comprising; in response to a request to perform a file system operation, identifying a first set of file system objects modified in performing the requested file system operation, inserting an update intent corresponding to the requested file system operation into an inode associated with each identified file system object, wherein the update intent specifies an ordered sequence of inodes associated with the requested file system operation, and for each inode; modifying either the inode or the file system object corresponding to the inode as specified by the update intent in that inode, and after modifying the file system object corresponding to the inode, removing the update intent from that inode. - View Dependent Claims (15, 16, 17, 18, 19, 20)
-
-
21. A method for locking entities to be modified in an operation in a distributed file system, the method comprising:
-
receiving a request to perform a file system operation, wherein the request specifies one or more file system objects to be modified in a distributed file system managed by a cluster of nodes; requesting, from a distributed lock manager, a node-specific lock on each of the file system objects, wherein the node-specific lock prevents other nodes in the cluster from accessing the locked file system objects during the file system operation; and upon receiving the node-specific locks on the file system objects, requesting, from a process-specific lock manager, a process-specific lock on each of the file system objects, wherein the process-specific lock prevents other local processes from accessing the file system objects. - View Dependent Claims (22, 23)
-
Specification