×

File access method and related device

  • US 10,452,562 B2
  • Filed: 09/07/2016
  • Issued: 10/22/2019
  • Est. Priority Date: 03/07/2014
  • Status: Active Grant
First Claim
Patent Images

1. A file access method performed by a computing node, wherein the computing node is controlled by an operating system, wherein the computing node comprises a memory, and the memory comprises:

  • a file storage area and a work process area, wherein the operating system runs in the work process area, a file system and files are stored in the file storage area, and the file storage area is non-volatile;

    the method comprising;

    receiving a file open request that carries a file identifier;

    obtaining a physical address space in the file storage area according to the file identifier, wherein the physical address space is used to store a file identified by the file identifier;

    allocating a virtual address space to the file after receiving the file open request;

    recording a virtual-physical address mapping relationship in a memory page table that is stored in the work process area, wherein the virtual-physical address mapping relationship is a mapping relationship between the virtual address space and the physical address space;

    opening the file in response to the file open request;

    receiving a file access request after the file is opened; and

    accessing, in response to the file access request, the file from the file storage memory area according to the virtual-physical address mapping relationship.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×