FILE ACCESS METHOD AND RELATED DEVICE
First Claim
13. A computing node, comprising:
- a processor and a storage device, wherein the storage device is configured to store program code for executing by the processor, and, by executing the program code, the processor is configured to;
receive a file open request that carries a file identifier;
obtain an index node of a file identified by the file identifier, and based on the index node, obtain a physical address space, wherein the file is stored in the physical address space in a file storage area of the storage device of the computing node;
allocate a virtual address space to the file; and
record a virtual-physical address mapping relationship in a memory page table that is stored in a work process area of the storage device, wherein the virtual-physical address mapping relationship is a mapping relationship between the virtual address space and the physical address space.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the application provide a file access method. A computing node receives a file open request that carries a file identifier. The computing node obtains an index node of a file that is identified by the file identifier. The computing node further obtains, based on the index node, a physical address space of a memory area in a file storage area, in which the file is stored. The computing node allocates a virtual address space to the file, and recodes a virtual-physical address mapping relationship by using a memory page table. The virtual-physical address mapping relationship includes a mapping relationship between the virtual address space and the physical address space.
6 Citations
25 Claims
-
13. A computing node, comprising:
-
a processor and a storage device, wherein the storage device is configured to store program code for executing by the processor, and, by executing the program code, the processor is configured to; receive a file open request that carries a file identifier; obtain an index node of a file identified by the file identifier, and based on the index node, obtain a physical address space, wherein the file is stored in the physical address space in a file storage area of the storage device of the computing node; allocate a virtual address space to the file; and record a virtual-physical address mapping relationship in a memory page table that is stored in a work process area of the storage device, wherein the virtual-physical address mapping relationship is a mapping relationship between the virtual address space and the physical address space. - View Dependent Claims (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23)
-
-
19-1. The computing node according to claim 13, wherein the processor is further configured to:
-
receive a file read request used for reading a file content of the file, wherein the file read request carries a read-in memory address space and a data volume of the file content, wherein the read-in memory address space is an address space of a memory area in the work process area of the storage device; obtain, according to the data volume of the file content, the virtual address space of the file and the virtual-physical address mapping relationship recorded in the memory page table, a read physical address space of the file content in the file storage area; read, according to the read physical address space, the first file content from the file storage area; and write the file content to the memory area.
-
-
24. A storage device of a computing node, comprising a non-transitory storage medium storing computer executable instructions, wherein the instructions, when being executed by a processor of the computing node, cause the processor to:
-
receive a file open request that carries a file identifier; obtain an index node of a file identified by the file identifier, and, based on the index node, obtain a physical address space, wherein the file is stored in the physical address space in a file storage area of the storage device; allocate a virtual address space to the file; and record a virtual-physical address mapping relationship in a memory page table that is stored in a work process area of the storage device, wherein the virtual-physical address mapping relationship is a mapping relationship between the virtual address space and the physical address space. - View Dependent Claims (25)
-
Specification