# US 2014/0279988 A1 · Method and system for hybrid direct input/output (i/o) with a storage device

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

- Number: US 2014/0279988 A1
- Document ID: US20140279988A1
- Status: Published application
- Kind: A1
- Application number: 13/827,086
- Filed: 2013-03-14
- Published: 2014-09-18
- Earliest claimed: 2013-03-14
- Assignees: DSSD, Inc.
- Inventors: Michael W. Shapiro
- Web page: https://patentgrep.com/patent/US20140279988A1

## CPC

- G06F 3/0611: {in relation to response time}
- G06F 3/0643: {Management of files}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0661: {Format or protocol conversion arrangements}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 3/068: {Hybrid storage device}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F 13/126: {and has means for transferring I/O instructions and statuses between control unit and main processor}
- G06F 16/13: File access structures, e.g. distributed indices (arrangements of input from, or output to, record carriers G06F3/06)
- G06F 16/148: {File search processing}
- G06F 16/168: {Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs (query results presentation G06F16/156)}
- 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

A method including intercepting a OFR for a file issued by an application to a FS, forwarding the OFR to the FS, receiving from the FS a FD for the file, issuing a SR for the file to the FS. The further method includes receiving from the FS status information for a target device on which the file is located, where the status information includes an OID for the file, storing a mapping of FD to the OID, intercepting a first FOR for the file, making a determination the that the first FOR is one of a read request and a write request, based on the determination, making another determination that the target device supports the direct I/O protocol, and issuing a DI request to the target device using the OID for the file, where the DI request is not processed by the FS.

## Claims

### Claim 1

A non-transitory computer readable medium comprising instructions, which when executed by a processor perform a method, the method comprising:
intercepting, in a user-level of a host, an open file request (OFR) for a file issued by an application to a file system (FS);
forwarding the OFR to the FS, wherein the FS is located in the user-level and the OFR is forwarded to the FS via a kernel module in a kernel-level of the host;
receiving from the FS, in response to the OFR, a file descriptor (FD) for the file;
issuing a status request (SR) for the file to the FS, wherein the SR comprises the file descriptor;
receiving from the FS, in response to the SR, status information for a target device on which the file is located, wherein the status information comprises an object identified (OID) for the file, wherein the target device is external to the host;
storing a mapping of FD to the OID;
after storing the mapping of the FD to the OID:
intercepting, by a direct I/O library, a first file operation request (FOR) for the file, wherein the request comprises the FD;
making a first determination that the first FOR is one selected from a group consisting of a read request and a write request;
based on the first determination, making a second determination that the target device on which the file is located supports the direct I/O protocol;
issuing a direct I/O request to the target device using the OID for the file, wherein the direct I/O request is not processed by the FS;
intercepting, by the direct I/O library, a second FOR for the file, wherein the second FOR comprises the FD;
making a third determination that the second FOR is not one selected from a group consisting of the read request and the write request; and
based on the third determination, forwarding the second FOR to the FS via the kernel module in the kernel-level of the host.

### Claim 2 (depends on 1)

The non-transitory computer readable medium of claim 1, the method further comprising:
receiving a notification, in response to the direct I/O request, that the direct I/O request is completed, wherein the notification is sent directly from the target device to the host and wherein the FS does not receive the notification.

### Claim 3

(canceled)

### Claim 4 (depends on 1)

The non-transitory computer readable medium of claim 1, the method further comprising:
creating a unified address space comprising a memory location on the target device prior to the issuance of the direct I/O request,
wherein issuing the direct I/O request comprises storing the direct I/O request directly in the memory location on the target device.

### Claim 5 (depends on 1)

The non-transitory computer readable medium of claim 1, wherein issuing the direct I/O request to the target device comprises storing the direct I/O request in a memory location on the target storage device, wherein the memory location is part of a unified address space that is directly accessible by the host.

### Claim 6 (depends on 5)

The non-transitory computer readable medium of claim 5, wherein the memory location is associated with a submission queue.

### Claim 7

A system, comprising:
a processors;
a user-level comprising an application, a direct I/O library, and a file system (FS);
a virtual file system (VFS) in the kernel-level, wherein the VFS is interposed between the direct I/O library and the kernel module;
a kernel-level, executing on the processor, comprising a kernel module; and
wherein the application is configured to issue an open file request (OFR) for a file;
wherein the direct I/O library is configured to intercept the OFR and forward the OFR to the VFS;
wherein the VFS is configured to forward to the OFR to the kernel module;
wherein the kernel module is configured to forward the OFR to the FS;
wherein the FS is configured to obtain a file descriptor (FD) for the file and send the FD to the direct I/O library via the kernel module;
wherein the direct I/O library is further configured to issue a status request (SR) for the file to the FS, wherein the SR comprises the file descriptor;
wherein the FS is configured to receive, via the kernel module, the SR and generate status information for a target device on which the file is located, wherein the status information comprises an object identified (OID) for the file and specifies that the target device supports a direct I/O protocol, and send the status information to the direct I/O library via the kernel module;
wherein the direct I/O library is further configured to receive the status information and store a mapping of FD to the OID;
wherein the target device is operatively connected to the system; and
wherein the kernel module is a File system in USEr space (FUSE) module.

### Claim 8

(canceled)

### Claim 9 (depends on 7)

The system of claim 7, wherein the direct I/O library is further configured to:
after storing the mapping of the FD to the OID:
intercept a first file operation request (FOR) for the file, wherein the request comprises the FD;
make a first determination that the first FOR is one selected from a group consisting of a read request and a write request;
based on the first determination, make a second determination that the target device on which the file is located supports the direct I/O protocol; and
issue a direct I/O request to the target device using the OID for the file, wherein the direct I/O request is not processed by the FS and is not processed by the kernel module.

### Claim 10 (depends on 9)

The system of claim 9, further comprising:
a kernel-level direct I/O library configured to create a unified address space comprising a memory location on the target device prior to the issuance of the direct I/O request, wherein issuing the direct I/O request comprises storing the direct I/O request directly in the memory location on the target device.

### Claim 11 (depends on 9)

The system of claim 9, wherein the unified address is implemented using PCIe and a non-transparent bridge interposed between the system and the target device.

### Claim 12 (depends on 7)

The system of claim 7, wherein the direct I/O library is further configured to:
after storing the mapping of the FD to the OID:
receive a second FOR for the file, wherein the second FOR comprises the FD;
make a third determination that the second FOR is not one selected from a group consisting of the read request and the write request;
based on the third determination, forward the second FOR to the FS via the kernel module.

### Claim 13 (depends on 12)

The system of claim 12, wherein the second FOR is one selected from a group consisting of a modify operation and a delete operation.

### Claim 14 (depends on 12)

The system of claim 12, wherein the FS is further configured to:
receive the second FOR;
service the second FOR using the direct I/O library to generate a response;
sending the response to the application via the kernel module and the direct I/O library.

### Claim 15

(canceled)

### Claim 16 (depends on 7)

The system of claim 7, wherein the target device comprises persistent storage.

### Claim 17 (depends on 16)

The system of claim 16, wherein the persistent storage comprises a solid state memory device.
