# US 2020/0394160 A1 · Concurrent access and transactions in a distributed file system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0394160 A1
- Document ID: US20200394160A1
- Status: Published application
- Kind: A1
- Application number: 16/921,055
- Filed: 2020-07-06
- Published: 2020-12-17
- Earliest claimed: 2014-10-27
- Assignees: Cohesity, Inc.
- Applicants: Cohesity, Inc.
- Inventors: Mohit Aron; Ganesha Shanmuganathan
- Web page: https://patentgrep.com/patent/US20200394160A1

## CPC

- G06F 16/1767: {Concurrency control, e.g. optimistic or pessimistic approaches}
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## 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.

## Claims

### Claim 1

(canceled)

### Claim 2

A method, comprising:
storing a corresponding update intent in each file system object associated with a file system transaction, wherein the corresponding update intent indicates an order in which a plurality of file system objects associated with the file system transaction are to be modified; and
modifying the plurality of file system objects associated with the file system transactions based on the order; and
removing the corresponding update intent from a file system object of the plurality of file system objects after the file system object is modified.

### Claim 3 (depends on 2)

The method of claim 2, further comprising generating the corresponding update intent for each file system object associated with the file system transaction.

### Claim 4 (depends on 2)

The method of claim 2, wherein the file system object is an inode.

### Claim 5 (depends on 2)

The method of claim 2, wherein the corresponding update intent indicates a file system operation to be performed for the file system transaction.

### Claim 6 (depends on 2)

The method of claim 2, further comprising receiving at a node of a distributed file system, a request to perform a file system operation.

### Claim 7 (depends on 6)

The method of claim 6, further comprising identifying a plurality of file system objects associated with the file system operation.

### Claim 8 (depends on 7)

The method of claim 7, further comprising requesting by the node from a distributed ticket service corresponding tickets for the plurality of identified file system objects.

### Claim 9 (depends on 8)

The method of claim 8, wherein the distributed ticket service determines whether the requested tickets are currently being held by one or more other nodes of the distributed file system.

### Claim 10 (depends on 9)

The method of claim 9, wherein in the event the requested tickets are currently being held by the one or more other nodes of the distributed file system, the requesting node waits until the requested tickets are no longer held by the one or more other nodes to receive the requested tickets.

### Claim 11 (depends on 9)

The method of claim 9, further comprising receiving the requested tickets from the distributed ticket service.

### Claim 12 (depends on 11)

The method of claim 11, further comprising requesting a process-wide lock for each of the file system objects.

### Claim 13 (depends on 12)

The method of claim 12, further comprising performing the file system operation.

### Claim 14

A computer program product, the computer program product being embodied in a non-transitory computer readable storage medium and comprising computer instructions for:
storing a corresponding update intent in each file system object associated with a file system transaction, wherein the corresponding update intent indicates an order in which a plurality of file system objects associated with the file system transaction are to be modified; and
modifying the plurality of file system objects associated with the file system transactions based on the order; and
removing the corresponding update intent from a file system object of the plurality of file system objects after the file system object is modified.

### Claim 15 (depends on 14)

The computer program product of claim 14, further comprising instructions for generating the corresponding update intent for each file system object associated with the file system transaction.

### Claim 16 (depends on 14)

The computer program product of claim 14, wherein the file system object is an inode.

### Claim 17 (depends on 14)

The computer program product of claim 14, wherein the corresponding update intent indicates a file system operation to be performed for the file system transaction.

### Claim 18 (depends on 14)

The computer program product of claim 14, further comprising instructions for:
receiving at a node of a distributed file system, a request to perform a file system operation; and
identifying a plurality of file system objects associated with the file system operation.

### Claim 19 (depends on 18)

The computer program product of claim 18, further comprising instructions for:
requesting by the node from a distributed ticket service corresponding tickets for the plurality of identified file system objects; and
receiving the requested tickets from the distributed ticket service.

### Claim 20 (depends on 19)

The computer program product of claim 19, further comprising instructions for:
requesting a process-wide lock for each of the file system objects; and
performing the file system operation.

### Claim 21

A system comprising:
a processor; and
a memory coupled with the processor, wherein the memory is configured to provide the processor with instructions which when executed cause the processor to:
store a corresponding update intent in each file system object associated with a file system transaction, wherein the corresponding update intent indicates an order in which a plurality of file system objects associated with the file system transaction are to be modified; and
modify the plurality of file system objects associated with the file system transactions based on the order; and
remove the corresponding update intent from a file system object of the plurality of file system objects after the file system object is modified.
