Method for accessing files, distributed storage system and storage node
暂无分享,去创建一个
A method for accessing files, a distributed storage system, and a storage node. The method comprises: a first storage node receives a host access request forwarded by a network device, said access request being used for accessing a first virtual space of a target file, said first virtual space being a space in the global virtual address space allocated for the target file by a management node, and the target address of the access request being the global virtual address of said first virtual space (S210), the first storage node being a storage node used for storing said target file; the first storage node, on the basis of the correspondence between the target address and the local virtual address of the first storage node, determines the local virtual address corresponding to the target address of the access request (S220); and the first storage node, on the basis of the local virtual address, accesses the target file (S230). The efficiency of file access can thereby be improved.