摘要 |
Disclosed are a method, system, and host for accessing files. The method comprises: the host acquiring information of a first virtual space of a target file, said first virtual space being used in a distributed storage system to manage the target file, said information of the first virtual space being used for indicating the local virtual address space of a first storage node (S210); on the basis of the information of the first virtual space, allocating a second virtual space for the target file in the local virtual address space of the host (S220); mapping the second virtual space to a virtual physical space (S230); establishing a correspondence between the first virtual space and the virtual physical space (S240); when determining that a second access request is accessing the virtual physical space, converting the second access request into a first access request for accessing the first virtual space (S250); and sending the first access request to a network device, such that the network device routes the first access request to the first storage node (S260). The method, system, and host can improve the efficiency of file access. |