forked from TrueCloudLab/frostfs-node
[#585] fstree: Add optional file counter
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
baad49990c
commit
58c8722c81
12 changed files with 312 additions and 172 deletions
|
@ -13,7 +13,10 @@ func (t *FSTree) Open(ro bool) error {
|
|||
|
||||
// Init implements common.Storage.
|
||||
func (t *FSTree) Init() error {
|
||||
return util.MkdirAllX(t.RootPath, t.Permissions)
|
||||
if err := util.MkdirAllX(t.RootPath, t.Permissions); err != nil {
|
||||
return err
|
||||
}
|
||||
return t.initFileCounter()
|
||||
}
|
||||
|
||||
// Close implements common.Storage.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue