# US 2017/0286442 A1 · File system support for file-level ghosting

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

- Number: US 2017/0286442 A1
- Document ID: US20170286442A1
- Status: Published application
- Kind: A1
- Application number: 15/198,587
- Filed: 2016-06-30
- Published: 2017-10-05
- Earliest claimed: 2016-03-31
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: PING XIE; RAN KALACH; RAJ DAS; TOM JOLLY; ARUSHI AGGARWAL
- Web page: https://patentgrep.com/patent/US20170286442A1

## CPC

- G06F 16/1748: {De-duplication implemented within the file system, e.g. based on file segments (de-duplication techniques in storage systems for the management of data blocks G06F3/0641)}
- G06F 16/1727: {Details of free space management performed by the file system (saving storage space on storage systems G06F3/0608; management of blocks in storage devices G06F3/064)}
- G06F 16/182: Distributed file systems
- G06F 16/185: Hierarchical storage management [HSM] systems, e.g. file migration or policies thereof (details of archiving G06F16/11)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

File system-awareness of ghosting performed by one or more tiering engines allows a file system to receive and store metadata indicating an identifier of the tiering engine ghosting the file extents and a storage location of the ghosted file extents for later use by the tiering engine. The file system is able to receive and process requests to read and write to a file having ghosted extents.

## Claims

### Claim 1

In a computer system comprising a file system and storage local to the file system, the file system managing the storage and retrieval of files and storing the data of each file in one or more data streams, a method comprising:
maintaining, by the file system, for each of a plurality of files managed by the file system, metadata concerning one or more ranges of data of the file, the metadata including, for each range of data stored within the storage local to the file system, an indication of the storage location of the range of data within the local storage;
receiving, by the file system, from a tiering engine, a request indicating that a range of data of one of the files managed by the file system is stored by the tiering engine, not within the one or more data streams of the file, in a location known and managed by the tiering engine, the request comprising an identification of the range of the data and an identifier associated with the tiering engine; and
in response to the request, storing within the metadata maintained by the file system, for the identified range of data, an indication that the range of data is not stored within the one or more data streams of the file and the identifier associated with the tiering engine.

### Claim 2 (depends on 1)

The method recited in claim 1, wherein the request from the tiering engine further comprises additional metadata, for use by the tiering engine, reflecting the storage location of the range of data not within the one or more data streams of the file, the method further comprising:
in response to the request, storing within the metadata maintained by the file system, for the identified range of data, the additional metadata received in the request.

### Claim 3 (depends on 1)

The method recited in claim 1, further comprising:
receiving, by the file system via the tiering engine, a request from a client of the file system to access at least a portion of the contents of a file;
determining from the metadata maintained by the file system that at least one range of data of the requested portion of the file is stored by the tiering engine and not stored within the one or more data streams of the file; and
for the at least one range of data determined to be stored by the tiering engine and not stored within the one or more data streams of the file, returning an indication thereof to the tiering engine,
whereby the tiering engine is responsible for retrieving the range of data not stored within the one or more data streams of the file in order to fulfill the client request.

### Claim 4 (depends on 3)

The method recited in claim 3, further comprising:
for any ranges of data of the requested portion of the file that are stored within the one or more data streams of the file, retrieving the data of those ranges from the local storage of the file system based on the metadata maintained for those ranges by the file system, and returning the data of those ranges to the tiering engine.

### Claim 5 (depends on 3)

The method recited in claim 3, the client being a user application or a ghosting engine.

### Claim 6 (depends on 1)

The method recited in claim 1, the location that is not within the one or more data streams of the file being a cloud storage location.

### Claim 7 (depends on 1)

The method recited in claim 1, the method further comprising:
receiving, by the file system, from a second tiering engine, a request indicating that a second range of data of the file is stored by the second tiering engine in a location that is not within the one or more data streams of the file, the request comprising an identification of the second range of the data and an identifier associated with the second tiering engine; and
in response to the request, storing within the metadata maintained by the file system, for the second range of data, an indication that the second range of data is not stored within the one or more data streams of the file and the identifier associated with the second tiering engine.

### Claim 8 (depends on 1)

The method recited in claim 1, further comprising:
after storing within the metadata maintained by the file system, for the identified range of data, an indication that the identified range of data is not stored within the one or more data streams of the file and the identifier of the tiering engine from which the request was received,
freeing disk space of the storage location of the identified range of data within the local storage of the file system.

### Claim 9 (depends on 1)

The method recited in claim 1, further comprising:
receiving, by the file system via the tiering engine, a request from a client of the file system to write to at least a portion of the contents of a file;
determining from the metadata maintained by the file system that at least one range of data of the requested portion of the file is stored by the tiering engine and not stored within the one or more data streams of the file;
for the at least one range of data determined to be stored by the tiering engine and not stored within the one or more data streams of the file, returning an indication thereof to the tiering engine,
receiving, by the file system, from the tiering engine, the at least one range of data stored by the tiering engine;
storing, within the one or more data streams of the file, the received at least one range of data stored by the tiering engine;
storing, within the metadata maintained by the file system, for each of the received at least one range of data, an indication that the range of data is stored within the one or more data streams of the file; and
in response to the request, writing to the contents of the file.

### Claim 10 (depends on 1)

The method recited in claim 1, further comprising:
receiving, by the file system via the tiering engine, a request from a client of the file system to delete the contents of a file;
determining from the metadata maintained by the file system that one or more ranges of data of the requested file are stored by at least one tiering engine and not stored within the one or more data streams of the file;
for the one or more ranges of data determined to be stored by the at least one tiering engine and not stored within the one or more data streams of the file, returning an indication thereof to the at least one tiering engine,
whereby the at least one tiering engine is responsible for deleting the one or more ranges of data not stored within the one or more data streams of the file; and
for any ranges of data of the requested file that are stored within the one or more data streams of the file, deleting the data of those ranges from the local storage of the file system and deleting the metadata maintained for those ranges by the file system.

### Claim 11

A computing device comprising a processing unit, a memory, and a file system executing on the processing unit, the file system managing the storage and retrieval of files and storing the data of each file in one or more data streams, the file system when executing on the processing unit performing operations comprising:
maintaining for each of a plurality of files managed by the file system, metadata concerning one or more ranges of data of the file, the metadata including, for each range of data stored within a storage local to the file system, an indication of the storage location of the range of data within the local storage;
receiving, from a tiering engine, a request indicating that a range of data of one of the files managed by the file system is stored by the tiering engine, not within the one or more data streams of the file, in a location known and managed by the tiering engine, the request comprising an identification of the range of the data and an identifier associated with the tiering engine; and
in response to the request, storing within the maintained metadata, for the identified range of data, an indication that the range of data is not stored within the one or more data streams of the file and the identifier associated with the tiering engine.

### Claim 12 (depends on 11)

The computing device recited in claim 11, wherein the request from the tiering engine further comprises additional metadata, for use by the tiering engine, reflecting the storage location of the range of data not within the one or more data streams of the file, in which the file system further performs operations comprising:
in response to the request, storing within the maintained metadata, for the identified range of data, the additional metadata received in the request.

### Claim 13 (depends on 11)

The computing device recited in claim 11, in which the file system further performs operations comprising:
receiving, via the tiering engine, a request from a client of the file system to read at least a portion of the contents of a file;
determining from the maintained metadata that at least one range of data of the requested portion of the file is stored by the tiering engine and not stored within the one or more data streams of the file; and
for the at least one range of data determined to be stored by the tiering engine and not stored within the one or more data streams of the file, returning an indication thereof to the tiering engine,
whereby the tiering engine is responsible for retrieving the range of data not stored within the one or more data streams of the file in order to fulfill the client request.

### Claim 14 (depends on 13)

The computing device recited in claim 13, in which the file system further performs operations comprising:
for any ranges of data of the requested portion that are stored within the one or more data streams of the file, retrieving the data of those ranges from the local storage of the file system based on the maintained metadata for those ranges, and returning the data of those ranges to the tiering engine.

### Claim 15 (depends on 13)

The computing device recited in claim 13, the client being a user application or a ghosting engine.

### Claim 16 (depends on 11)

The computing device recited in claim 11, the location that is not within the one or more data streams of the file being a cloud storage location.

### Claim 17 (depends on 11)

The computing device recited in claim 11, in which the file system further performs operations comprising:
receiving, by the file system, from a second tiering engine, a request indicating that a second range of data of the file is stored by the second tiering engine in a location that is not within the one or more data streams of the file, the request comprising an identification of the second range of the data and an identifier associated with the second tiering engine; and
in response to the request, storing within the metadata maintained by the file system, for the second range of data, an indication that the second range of data is not stored within the one or more data streams of the file and the identifier associated with the second tiering engine.

### Claim 18 (depends on 11)

The computing device recited in claim 11, in which the file system further performs operations comprising:
after storing within the metadata maintained by the file system, for the identified range of data, an indication that the identified range of data is not stored within the one or more data streams of the file and the identifier of the tiering engine from which the request was received,
freeing disk space of the storage location of the identified range of data within the local storage of the file system.

### Claim 19 (depends on 11)

The computing device recited in claim 11, in which the file system further performs operations comprising:
receiving, by the file system via the tiering engine, a request from a client of the file system to write to at least a portion of the contents of a file;
determining from the metadata maintained by the file system that at least one range of data of the requested portion of the file is stored by the tiering engine and not stored within the one or more data streams of the file;
for the at least one range of data determined to be stored by the tiering engine and not stored within the one or more data streams of the file, returning an indication thereof to the tiering engine,
receiving, by the file system, from the tiering engine, the at least one range of data stored by the tiering engine;
storing, within the one or more data streams of the file, the received at least one range of data stored by the tiering engine;
storing, within the metadata maintained by the file system, for each of the received at least one range of data, an indication that the range of data is stored within the one or more data streams of the file; and
in response to the request, writing to the contents of the file.

### Claim 20 (depends on 11)

The computing device recited in claim 11, in which the file system further performs operations comprising:
receiving, by the file system via the tiering engine, a request from a client of the file system to delete the contents of a file;
determining from the metadata maintained by the file system that one or more ranges of data of the requested file are stored by at least one tiering engine and not stored within the one or more data streams of the file;
for the one or more ranges of data determined to be stored by the at least one tiering engine and not stored within the one or more data streams of the file, returning an indication thereof to the at least one tiering engine,
whereby the at least one tiering engine is responsible for deleting the one or more ranges of data not stored within the one or more data streams of the file; and
for any ranges of data of the requested file that are stored within the one or more data streams of the file, deleting the data of those ranges from the local storage of the file system and deleting the metadata maintained for those ranges by the file system.
