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
|
@ -53,7 +53,7 @@ var storages = []storage{
|
|||
},
|
||||
},
|
||||
{
|
||||
desc: "fstree",
|
||||
desc: "fstree_without_object_counter",
|
||||
create: func(dir string) common.Storage {
|
||||
return fstree.New(
|
||||
fstree.WithPath(dir),
|
||||
|
@ -62,6 +62,17 @@ var storages = []storage{
|
|||
)
|
||||
},
|
||||
},
|
||||
{
|
||||
desc: "fstree_with_object_counter",
|
||||
create: func(dir string) common.Storage {
|
||||
return fstree.New(
|
||||
fstree.WithPath(dir),
|
||||
fstree.WithDepth(2),
|
||||
fstree.WithDirNameLen(2),
|
||||
fstree.WithFileCounter(fstree.NewSimpleCounter()),
|
||||
)
|
||||
},
|
||||
},
|
||||
{
|
||||
desc: "blobovniczatree",
|
||||
create: func(dir string) common.Storage {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue