发明名称 |
FILE ACCESS METHOD AND RELATED DEVICE |
摘要 |
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. |
申请公布号 |
US2016378680(A1) |
申请公布日期 |
2016.12.29 |
申请号 |
US201615257928 |
申请日期 |
2016.09.07 |
申请人 |
HUAWEI TECHNOLOGIES CO.,LTD. |
发明人 |
Sha Xingmian;Zhuge Qingfeng;Zhu Guanyu |
分类号 |
G06F12/109;G06F17/30 |
主分类号 |
G06F12/109 |
代理机构 |
|
代理人 |
|
主权项 |
1. A file access method performed by a processor of a computing node, wherein the computing node is controlled by an operating system and one or more processes are running in the computing node, the method comprising:
receiving a file open request that carries a file identifier; obtaining an index node of a file identified by the file identifier, and, based on the index node, obtaining a physical address space, wherein the file is stored in the physical address space in a file storage area of a memory of the computing node; allocating a virtual address space to the file; and recording a virtual-physical address mapping relationship in a memory page table that is stored in a work process area of the memory, wherein the virtual-physical address mapping relationship is a mapping relationship between the virtual address space and the physical address space. |
地址 |
Shenzhen CN |