forked from TrueCloudLab/frostfs-node
923f84722a
Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
19 lines
383 B
Go
19 lines
383 B
Go
package fstree
|
|
|
|
import (
|
|
"github.com/TrueCloudLab/frostfs-node/pkg/util"
|
|
)
|
|
|
|
// Open implements common.Storage.
|
|
func (t *FSTree) Open(ro bool) error {
|
|
t.readOnly = ro
|
|
return nil
|
|
}
|
|
|
|
// Init implements common.Storage.
|
|
func (t *FSTree) Init() error {
|
|
return util.MkdirAllX(t.RootPath, t.Permissions)
|
|
}
|
|
|
|
// Close implements common.Storage.
|
|
func (*FSTree) Close() error { return nil }
|