US 11,809,726 B2
Distributed storage method and device
Yong Zhang, Hangzhou (CN); Yicong Cai, Shenzhen (CN); and Ajith Raj Shetty S, Bangalore (IN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by Huawei Technologies Co., Ltd., Shenzhen (CN)
Filed on Mar. 7, 2022, as Appl. No. 17/688,030.
Application 17/688,030 is a continuation of application No. 15/851,212, filed on Dec. 21, 2017, granted, now 11,301,154.
Application 15/851,212 is a continuation of application No. PCT/CN2016/095228, filed on Aug. 15, 2016.
Claims priority of application No. 201610083819.8 (CN), filed on Feb. 6, 2016.
Prior Publication US 2022/0188003 A1, Jun. 16, 2022
This patent is subject to a terminal disclaimer.
Int. Cl. G06F 3/06 (2006.01); G06F 11/14 (2006.01); G06F 16/182 (2019.01)
CPC G06F 3/0641 (2013.01) [G06F 3/061 (2013.01); G06F 3/067 (2013.01); G06F 3/0608 (2013.01); G06F 3/0643 (2013.01); G06F 3/0647 (2013.01); G06F 11/1435 (2013.01); G06F 16/182 (2019.01)] 20 Claims
OG exemplary drawing
 
1. A method for small files optimization, comprising:
merging, by a first thread service, M small files in a file system into one first file, wherein a size of each of the M small files is less than a predefined byte size, and wherein M is an integer that is greater than 1;
generating, by the first thread service, M pieces of metadata, wherein each of the M pieces of metadata indicates a location of a corresponding one of the M small files in the first file;
receiving, by a second thread service, a first instruction that instructs the second thread service to perform an operation on a first small file, wherein the first small file is one of the M small files, and wherein the first thread service and the second thread service are two different and separate thread services;
obtaining, by the second thread service, metadata of the first small file from a metadata set that comprises metadata describing a plurality of small files including the M small files; and
performing, by the second thread service, the operation on the first small file.