Method and device of cloud storage
AssigneeTianjin Sursen Investment Co., Ltd.
InventorDonglin Wang
Life of this patent
Estimating the term…
Abstract
Embodiments of the present invention disclose a cloud storage method and device, to provide efficient storage of huge amounts of data. The cloud storage method includes: calculating the hash value of a file, converting the hash value of the file into the string, and using the string as the filename; calculating the storage path of the file by using the hash value of the file according to a predefined rule; looking up a physical storage location of the storage path of the file in an index table and storing the file in the physical storage location, wherein the index table stores corresponding relationship tables between all possible storage paths and physical locations in the storage disk in advance.
Claims9
A cloud storage method, comprising:
- calculating the hash value of a file, converting the hash value of the file into the string, and using the string as the filename;
- calculating the storage path of the file by using the hash value of the file according to a predefined rule;
- looking up a physical storage location of the storage path of the file in an index table and storing the file in the physical storage location, wherein the index table stores corresponding relationship tables between all possible storage paths and physical storage locations in the storage disk in advance.
A non-transitory computer-readable storage medium, having one or more computer-readable instructions when read, cause one or more processors on a client device to execute steps comprising:
- calculating the hash value of a file, converting the hash value of the file into the string, and using the string as the filename;
- calculating the storage path of the file by using the hash value of the file according to a predefined rule;
- looking up a physical storage location of the storage path of the file in an index table and storing the file in the physical storage location, wherein the index table stores corresponding relationship tables between all possible storage paths and physical locations in the storage disk in advance.
Dependencies are inferred from the claim text.