forked from TrueCloudLab/frostfs-node
[#189] blobstor: Implement DumpInfo method
Implement method to get the information about the BLOB storage. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
dae8d3de5b
commit
eaa7068e3c
4 changed files with 29 additions and 11 deletions
|
@ -53,9 +53,9 @@ func (b *BlobStor) Put(prm *PutPrm) (*PutRes, error) {
|
|||
func (t *fsTree) put(addr *objectSDK.Address, data []byte) error {
|
||||
p := t.treePath(addr)
|
||||
|
||||
if err := os.MkdirAll(path.Dir(p), t.perm); err != nil {
|
||||
if err := os.MkdirAll(path.Dir(p), t.Permissions); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return ioutil.WriteFile(p, data, t.perm)
|
||||
return ioutil.WriteFile(p, data, t.Permissions)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue