# US 2015/0149505 A1 · Directory leasing

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

- Number: US 2015/0149505 A1
- Document ID: US20150149505A1
- Status: Published application
- Kind: A1
- Application number: 14/614,956
- Filed: 2015-02-05
- Published: 2015-05-28
- Earliest claimed: 2010-09-17
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC.
- Inventors: David Matthew Kruse; Mathew George; Sarosh Cyrus Havewala; Christian Gregory Allred; Neal Robert Christiansen
- Web page: https://patentgrep.com/patent/US20150149505A1

## CPC

- G06F 16/182: Distributed file systems
- G06F 16/164: {File meta data generation}
- G06F 16/172: Caching, prefetching or hoarding of files
- G06F 16/24552: {Database cache management}
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F 21/6227: {where protection concerns the structure of data, e.g. records, types, queries}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Described are embodiments for allowing clients that access a distributed file system to locally cache directory metadata. The client may request a read lease which allows the client to cache the directory metadata locally and service requests received from the same application which originally requested the directory metadata using the cache. In addition, the client may also request a handle lease which allows a client to delay the closing of a directory handle and allow the handle to be reused to service subsequent directory metadata requests from the same or a different application. A client may also request a write lease which allows an application on the client to modify the directory metadata, such as by creating or deleting new files in the directory, or changing their attributes, and cache those changes.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

A method comprising:
receiving, from a requesting device, a request for directory metadata, wherein the request comprises:
a request for a handle to a directory containing the directory metadata;
a request for a lease, wherein the lease allows local caching of directory metadata until revocation of the lease; and
transmitting a response to the requesting device, wherein the response comprises:
a key, wherein the key is associated with a first directory that includes the requested directory metadata;
a directory key, wherein the directory key is associated with a second directory, and wherein the first directory is included in the second directory;
the directory metadata; and
an indication of an approval of the request for the lease.

### Claim 22 (depends on 21)

The method of claim 21, wherein the request for the lease comprises a flag indicating a request for one or more of: read caching, write caching, and handle caching.

### Claim 23 (depends on 21)

The method of claim 21, further comprising:
receiving a second request to modify directory metadata; and
determining whether the second request is received from a second requesting device.

### Claim 24 (depends on 23)

The method of claim 23, wherein determining whether the second request is received from a second requesting device comprises comparing a directory key associated with the second request with a previously stored directory key.

### Claim 25 (depends on 24)

The method of claim 24, further comprising sending a revocation notification to the requesting device to revoke the lease in response to determining that the directory key associated with the second request is not the same as the previously stored directory key.

### Claim 26 (depends on 21)

The method of claim 21, further comprising:
receiving a second request to modify a file stored in the second directory, wherein the second request is associated with a file key associated with the file and a second directory key.

### Claim 27 (depends on 21)

The method of claim 21, wherein the directory key and the key are stored in a look-up table and the look-up table stores an association of the key and the directory key.

### Claim 28 (depends on 21)

The method of claim 21, wherein the request further comprises an indication to create the key and the directory key.

### Claim 29 (depends on 21)

The method of claim 21, further comprising:
transmitting a notice of revocation of the lease; and
in response to transmitting the notice of revocation of the lease, receiving an acknowledgement of receipt of the notice of revocation.

### Claim 30 (depends on 29)

The method of claim 29, wherein notice of revocation comprises a notification that the directory metadata has been removed from a local cache accessible by the requesting device.

### Claim 31 (depends on 21)

The method of claim 21, further comprising transmitting a notice that the directory metadata has changed.

### Claim 32

A computer-readable storage device encoding computer executable instructions that, when executed by at least one processor, cause the at least one processor to perform a method, the method comprising:
receiving, from a requesting device, a request for directory metadata, wherein the request comprises:
a request for a handle to a directory containing the directory metadata; and
a request for a lease, wherein the lease allows local caching of directory metadata until revocation of the lease; and
transmitting a response to the requesting device, wherein the response comprises:
a key, wherein the key is associated with a first directory that includes the requested directory metadata;
a directory key, wherein the directory key is associated with a second directory, and wherein the first directory is included in the second directory;
the directory metadata; and
an indication of an approval of the request for the lease.

### Claim 33 (depends on 32)

The computer-readable storage device of claim 32, wherein the request for the lease comprises a flag indicating a request for one or more of: read caching, write caching, and handle caching.

### Claim 34 (depends on 32)

The computer-readable storage device of claim 32, the method further comprising:
receiving a second request to modify directory metadata; and
determining whether the second request is received from a second requesting device.

### Claim 35 (depends on 34)

The computer-readable storage device of claim 34, wherein determining whether the second request is received from a second requesting device comprises comparing a directory key associated with the second request with a previously stored directory key.

### Claim 36 (depends on 35)

The computer-readable storage device of claim 35, the method further comprising: sending a revocation notification to the requesting device to revoke the lease in response to determining that the directory key from the second request is not the same as the previously stored directory key.

### Claim 37 (depends on 32)

The computer-readable storage device of claim 32, wherein the request further comprises an indication to create the key and the directory key.

### Claim 38

A system comprising:
at least one processor; and
a memory operatively coupled to the processor, the memory storing instructions which, that when executed by the at least one processor, cause the system to perform a method, the method comprising:
receiving a request for directory metadata, wherein the request comprises:
a request for a handle to a directory containing the directory metadata; and
a request for a lease for enabling local caching of directory metadata; and
transmitting a response to the requesting device, wherein the response comprises:
a key, wherein the key is associated with a first directory that includes the requested directory metadata;
a directory key, wherein the directory key is associated with a second directory, and wherein the first directory is included in the second directory; and
an indication of an approval of the request for the lease.

### Claim 39 (depends on 38)

The system of claim 38, wherein the response further comprises the directory metadata.

### Claim 40 (depends on 38)

The system of claim 38, wherein the request further comprises an indication to create the key and the directory key.
