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
19
pkg/local_object_storage/blobstor/info.go
Normal file
19
pkg/local_object_storage/blobstor/info.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
package blobstor
|
||||
|
||||
import (
|
||||
"os"
|
||||
)
|
||||
|
||||
// Info groups the information about BlobStor.
|
||||
type Info struct {
|
||||
// Permission bits of the root directory.
|
||||
Permissions os.FileMode
|
||||
|
||||
// Full path to the root directory.
|
||||
RootPath string
|
||||
}
|
||||
|
||||
// DumpInfo returns information about the BlobStor.
|
||||
func (b *BlobStor) DumpInfo() Info {
|
||||
return b.fsTree.Info
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue