摘要 |
A method for forming a virtual file system associated with a distributed storage system is implemented at a computing device communicatively connected to the distributed storage system. The computing device retrieves one or more metadata blocks associated with the virtual file system from the plurality of storage devices. After rendering a commit tree for the virtual file system, the computing device builds an instance of the virtual file system by traversing a plurality of directory nodes and file nodes associated with the tree in a recursive manner. For a respective directory node, the computing device creates a directory in accordance with the metadata associated with the directory node; for a respective file node, the computing device retrieves one or more data blocks from the plurality of storage devices in accordance with the metadata associated with the file node and creates a file using the retrieved data blocks.
|