# US 2015/0106411 A1 · Migrating file locks in distributed file systems

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

- Number: US 2015/0106411 A1
- Document ID: US20150106411A1
- Status: Published application
- Kind: A1
- Application number: 14/053,018
- Filed: 2013-10-14
- Published: 2015-04-16
- Earliest claimed: 2013-10-14
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Anand Avati; Raghavendra Gowdappa
- Web page: https://patentgrep.com/patent/US20150106411A1

## CPC

- G06F 16/182: Distributed file systems
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for migrating file locks in distributed file systems. An example method may comprise: receiving, by a file system server, over a first connection initiated by a file system client, a connection identifier comprising a file identifier; identifying, in view of the connection identifier, a second connection initiated by the file system client, the second connection associated with a file lock with respect to a file identified by the file identifier; and associating the file lock with the first connection.

## Claims

### Claim 1

A method, comprising:
receiving, by a file system server, over a first connection initiated by a file system client, a connection identifier comprising a file identifier;
identifying, in view of the connection identifier, a second connection initiated by the file system client, the second connection associated with a file lock with respect to a file identified by the file identifier; and
associating, by the file system server, the file lock with the first connection.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
responsive to receiving, over the second connection, a connection identifier request, sending the connection identifier to the file system client.

### Claim 3 (depends on 1)

The method of claim 1, wherein the associating comprises disassociating the lock from the second connection.

### Claim 4 (depends on 1)

The method of claim 1, wherein the connection identifier further comprises an identifier of the file system server.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
discarding, responsive to the receiving, a connection identifier that is not associated with the file system server.

### Claim 6 (depends on 1)

The method of claim 1, wherein the receiving comprises decrypting the connection identifier using a secret key stored by the file system server.

### Claim 7

A method, comprising:
transmitting, based on a first configuration graph describing a first configuration of a distributed file system, a first open request with respect to a file;
issuing a lock request with respect to at least a part of the file;
transmitting, based on the first configuration graph, connection identifier requests to a plurality of servers of the distributed file system;
receiving, by a processing device, a plurality of connection identifiers responsive to the connection identifier requests; and
sending, based on a second configuration graph describing a second configuration of the distributed file system, the plurality of connection identifiers to the plurality of servers, wherein the second configuration is to supersede the first configuration.

### Claim 8 (depends on 7)

The method of claim 7, wherein the transmitting is performed responsive to receiving a notification of a configuration change in the distributed file system.

### Claim 9 (depends on 7)

The method of claim 7, further comprising:
transmitting, based on the second configuration graph, a second open request with respect to the file.

### Claim 10 (depends on 7)

The method of claim 7, further comprising discarding the first configuration graph.

### Claim 11 (depends on 7)

The method of claim 7, wherein the sending comprises:
requesting, from an external computer system, a configuration information describing the second configuration of the distributed file system; and
constructing, in a memory, the second graph.

### Claim 12

A system, comprising:
a memory; and
one or more processors, coupled to the memory, to:
receive over a first connection initiated by a file system client, a connection identifier comprising a file identifier;
identify, in view of the connection identifier, a second connection initiated by the file system client, the second connection associated with a file lock with respect to a file identified by the file identifier; and
associate the file lock with the first connection.

### Claim 13 (depends on 12)

The system of claim 12, wherein the processors are further to:
responsive to receiving, over the second connection, a connection identifier request, send the connection identifier to the file system client.

### Claim 14 (depends on 12)

The system of claim 12, wherein the associating comprises disassociating the lock from the second connection.

### Claim 15 (depends on 12)

The system of claim 12, wherein the connection identifier further comprises an identifier of the file system server.

### Claim 16 (depends on 12)

The system of claim 12, further comprising:
discarding, responsive to the receiving, a connection identifier that is not associated with the file system server.

### Claim 17

A non-transitory computer-readable storage medium comprising executable instructions that, when executed by a processing device of a file system server, cause the processing device to perform operations, comprising:
receiving over a first connection initiated by a file system client, a connection identifier comprising a file identifier;
identifying, in view of the connection identifier, a second connection initiated by the file system client, the second connection associated with a file lock with respect to a file identified by the file identifier; and
associating, by the processing device, the file lock with the first connection.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, further comprising executable instructions that, when executed by a processing device, cause the processing device to perform operations, comprising:
responsive to receiving, over the second connection, a connection identifier request, sending the connection identifier to the file system client.

### Claim 19 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the associating comprises disassociating the lock from the second connection.

### Claim 20 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, further comprising executable instructions that, when executed by a processing device, cause the processing device to perform operations, comprising:
discarding, responsive to the receiving, a connection identifier that is not associated with the file system server.
