US 12,253,974 B2
Metadata processing method and apparatus, and a computer-readable storage medium
Yinjun Han, Shenzhen (CN); Bo Wang, Shenzhen (CN); Yaofeng Tu, Shenzhen (CN); and Hong Gao, Shenzhen (CN)
Assigned to ZTE CORPORATION, Shenzhen (CN)
Appl. No. 17/623,346
Filed by ZTE Corporation, Shenzhen (CN)
PCT Filed Jun. 24, 2020, PCT No. PCT/CN2020/098244
§ 371(c)(1), (2) Date Dec. 28, 2021,
PCT Pub. No. WO2021/004295, PCT Pub. Date Jan. 14, 2021.
Claims priority of application No. 201910605081.0 (CN), filed on Jul. 5, 2019.
Prior Publication US 2022/0365905 A1, Nov. 17, 2022
Int. Cl. G06F 16/16 (2019.01); G06F 16/13 (2019.01); G06F 16/182 (2019.01)
CPC G06F 16/164 (2019.01) [G06F 16/134 (2019.01); G06F 16/182 (2019.01)] 18 Claims
OG exemplary drawing
 
1. A metadata processing method, comprising:
obtaining, by a management server connected with at least one first node, a second node and at least one third node, metadata to be processed, wherein the metadata to be processed comprises a directory structure and file attributes;
according to a load condition of the at least one first node for storing the file attributes and based on a rule that file attributes corresponding to files of a same directory are stored in a same first node, storing, in a first node by the management server, the file attributes corresponding to files of directories in the directory structure, or storing, in first nodes by the management server, the file attributes corresponding to files of directories in the directory structure in a distributed manner; wherein each of the first node or first nodes in which the file attributes are stored has a remaining storage space greater than a storage space required for storing the file attributes corresponding to files of a corresponding directory, and has a load less than a first preset threshold value;
obtaining, by the management server, distributed storage information of the file attributes corresponding to the files of the directories in the directory structure on the first node or first nodes, and storing, by the management server, the directory structure and the obtained distributed storage information in the second node; and storing, by the management server, the files of the directories in the directory structure in the at least one third node; and
obtaining, by the management server, directories other than a root directory from the directory structure, and performing following operations for each obtained directory: obtaining, by the management server, identification information of a parent directory of the obtained directory; allocating, by the management server, identification information to the obtained directory; obtaining, by the management server, according to the distributed storage information, identification information and location information of a first node storing file attributes corresponding to files of the obtained directory; generating, by the management server, directory entry information according to the obtained identification information of the parent directory, a name of the obtained directory, the identification information of the obtained directory, and the obtained identification information and location information of the first node; and storing, by the management server, the generated directory entry information in the second node.