# US 2023/0409235 A1 · File system improvements for zoned storage device operations

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

- Number: US 2023/0409235 A1
- Document ID: US20230409235A1
- Status: Published application
- Kind: A1
- Application number: 17/829,317
- Filed: 2022-05-31
- Published: 2023-12-21
- Earliest claimed: 2022-05-31
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Rajsekhar DAS; Neeraj Kumar SINGH
- Web page: https://patentgrep.com/patent/US20230409235A1

## CPC

- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0643: {Management of files}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 16/1805: {Append-only file systems, e.g. using logs or journals to store data}
- G06F 16/1847: {specifically adapted to static storage, e.g. adapted to flash memory or SSD}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The techniques disclosed herein enable systems to efficiently interface with zoned namespace (ZNS) storage devices through a specialized management entity. To achieve this, the management entity receives write requests from a file system containing data intended for storage at the ZNS device. In response, the management entity selects a zone from the ZNS device to write the file data to. Accordingly, the file data is written by appending the file data to the zone at a location indicated by a write pointer. When the write operation is completed, the offset of the file data within the zone is observed and recorded by the file system in file metadata. In contrast to typical systems which allocate locations at the storage device prior to writing, appending file data and then recording the location enables improved efficiency in file system operations. Namely, that write operations can be issued to the ZNS device non-serially.

## Claims

### Claim 1

A method comprising:
receiving, at a management entity by a processing system, a write request from a file system, the write request comprising file data and a data quantity;
in response to receiving the write request, selecting, by the management entity, a zone of a storage device containing a plurality of zones for storing the file data of the write request;
appending the file data of the write request to the zone;
determining an offset of the file data within the zone based on the data quantity and a starting location of the zone;
returning an identifier of the zone and the offset of the file data within the zone to the management entity; and
updating file metadata associated with the file data with the identifier of the zone and the offset of the file data.

### Claim 2 (depends on 1)

The method of claim 1, wherein the storage device is a zoned namespace storage device.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
receiving a plurality of additional write requests from the file system at the management entity;
scheduling an append operation for respective file data of each write request of the plurality of additional write requests for storage at the zone; and
returning the identifier of the zone and a respective offset of the respective file data for each write request of the plurality of additional write requests to the file system.

### Claim 4 (depends on 1)

The method of claim 1, wherein the plurality of zones is a first plurality of zones, and the storage device contains a second plurality of zones, the method further comprising:
receiving a plurality of additional write requests from the file system at the management entity;
selecting the second plurality of zones of the storage device;
appending respective file data of each write request of the plurality of additional write requests to a corresponding one of the second plurality of zones; and
returning a zone identifier and a file data offset for each write request of the plurality of additional write requests to the file system.

### Claim 5 (depends on 1)

The method of claim 1, wherein respective file data of additional write requests originating from the same application as the write request are stored within the zone of the storage device.

### Claim 6 (depends on 1)

The method of claim 1, wherein the file metadata is stored on a second storage device that is different from the storage device containing the plurality of zones.

### Claim 7 (depends on 1)

The method of claim 1, wherein a plurality of write requests is transmitted to the storage device simultaneously.

### Claim 8

A system comprising:
a processing system; and
a computer-readable medium having encoded thereon computer-readable instructions that, when executed by the processing system, cause the system to:
receive, at a management entity by a processing system, a write request from a file system, the write request comprising file data and a data quantity;
in response to receiving the write request, select, by the management entity, a zone of a storage device containing a plurality of zones for storing the file data of the write request;
append the file data of the write request to the zone;
determine an offset of the file data within the zone based on the data quantity and a starting location of the zone;
return an identifier of the zone and the offset of the file data within the zone to the management entity; and
update file metadata associated with the file data with the identifier of the zone and the offset of the file data.

### Claim 9 (depends on 8)

The system of claim 8, wherein the storage device is a zoned namespace storage device.

### Claim 10 (depends on 8)

The system of claim 8, wherein the computer-readable instructions further cause the system to:
receive a plurality of additional write requests from the file system at the management entity;
schedule an append operation for respective file data of each write request of the plurality of additional write requests for storage at the zone; and
return the identifier of the zone and a respective offset of the respective file data for each write request of the plurality of additional write requests to the file system.

### Claim 11 (depends on 8)

The system of claim 8, wherein the plurality of zones is a first plurality of zones, and the storage device contains a second plurality of zones, the computer-readable instructions further causing the system to:
receive a plurality of additional write requests from the file system at the management entity;
select the second plurality of zones of the storage device;
append respective file data of each write request of the plurality of additional write requests to a corresponding one of the second plurality of zones; and
return a zone identifier and a file data offset for each write request of the plurality of additional write requests to the file system.

### Claim 12 (depends on 8)

The system of claim 8, wherein respective file data of additional write requests originating from the same application as the write request are stored within the zone of the storage device.

### Claim 13 (depends on 8)

The system of claim 8, wherein the file metadata is stored on a second storage device that is different from the storage device containing the plurality of zones.

### Claim 14 (depends on 8)

The system of claim 8, wherein a plurality of write requests is transmitted to the storage device simultaneously.

### Claim 15

A computer-readable storage medium having encoded thereon computer-readable instructions that when executed by a processing system cause a system to:
receive, at a management entity by a processing system, a write request from a file system, the write request comprising file data and a data quantity;
in response to receiving the write request, select, a zone of a storage device containing a plurality of zones for storing the file data of the write request;
append the file data of the write request to the zone;
determine an offset of the file data within the zone based on the data quantity and a starting location of the zone;
return an identifier of the zone and the offset of the file data within the zone to the management entity; and
update file metadata associated with the file data with the identifier of the zone and the offset of the file data.

### Claim 16 (depends on 15)

The computer-readable storage medium of claim 15, wherein the storage device is a zoned namespace storage device.

### Claim 17 (depends on 15)

The computer-readable storage medium of claim 15, wherein the computer-readable instructions further cause the system to:
receive a plurality of additional write requests from the file system at the management entity;
schedule an append operation for respective file data of each write request of the plurality of additional write requests for storage at the zone; and
return the identifier of the zone and a respective offset of the respective file data for each write request of the plurality of additional write requests to the file system.

### Claim 18 (depends on 15)

The computer-readable storage medium of claim 15, wherein the plurality of zones is a first plurality of zones, and the storage device contains a second plurality of zones, the computer-readable instructions further causing the system to:
receive a plurality of additional write requests from the file system at the management entity;
select the second plurality of zones of the storage device;
append respective file data of each write request of the plurality of additional write requests to a corresponding one of the second plurality of zones; and
return a zone identifier and a file data offset for each write request of the plurality of additional write requests to the file system.

### Claim 19 (depends on 15)

The computer-readable storage medium of claim 15, wherein respective file data of additional write requests originating from the same application as the write request are stored within the zone of the storage device.

### Claim 20 (depends on 15)

The computer-readable storage medium of claim 15, wherein a plurality of write requests is transmitted to the storage device simultaneously.
