An Storage Tool For Filecoin
🧩 Filecoin version: lotus 0.2.7
- Why do we need storage assistants ?
Because currently filecoin does not support files larger than sector size to place storage orders, we design storage assistant to help users cut large files into smaller files and realize the storage requirements of files larger than sector size. In addition, filecoin does not support directory storage, we also implemented the directory storage function, the files in the directory are stored separately to achieve this function.
- What is metadata ?
Metadata: metadata is used for data retrieval. For example, if the user stores a directory, the metadata information records which files are in the directory (cid of the file); So we think that users have to pay for metadata, that is, they also have to store metadata.
# cd {project}
# make all
To see a full list of commands, run storagehelper --help
.
expample:
-
1 help storagehelper --help
-
2 import and get final cid: storagehelper impot
need:
<file>: file or dir
option:
<vers> : lotus/fil default lotus
<size>: block sizae
<pwd>: if enc
- 3 storagehelper deal
need:
<cid> : file cid
<duration>: storage duration
option:
<vers>: lotus/fil default lotus
<miner>: minner id
<askid>: used when vers=fil
<price>: used when vers=lotus
- 4 check state
storagehelper state
need:
<cid>: 订单id
option:
<vers>: lotus/fil default lotus
- 5 retrive
storagehelper retrive
need:
<cid>: file cid
<targetpath>:
option:
<vers>: lotus/fil
<miner>: miner id
Dual-licensed under MIT + Apache 2.0