Skip to content

Commit

Permalink
feat(decomposedfs): expose disable-versioning
Browse files Browse the repository at this point in the history
Signed-off-by: jkoberg <[email protected]>
  • Loading branch information
kobergj committed Jun 26, 2024
1 parent 9351da5 commit a76ce1f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/expose-disable-versioning.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Enhancement: Expose disable-versioning configuration option

This PR exposes the disable-versioning configuration option to the user. This option allows the user to disable versioning for the storage-providers.

https://github.com/cs3org/reva/pull/4742
9 changes: 5 additions & 4 deletions pkg/storage/utils/decomposedfs/decomposedfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,11 @@ func NewDefault(m map[string]interface{}, bs tree.Blobstore, es events.Stream) (
}

aspects := aspects.Aspects{
Lookup: lu,
Tree: tp,
Permissions: permissions.NewPermissions(node.NewPermissions(lu), permissionsSelector),
EventStream: es,
Lookup: lu,
Tree: tp,
Permissions: permissions.NewPermissions(node.NewPermissions(lu), permissionsSelector),
EventStream: es,
DisableVersioning: o.DisableVersioning,
}

return New(o, aspects)
Expand Down
2 changes: 2 additions & 0 deletions pkg/storage/utils/decomposedfs/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ type Options struct {
MaxConcurrency int `mapstructure:"max_concurrency"`

MaxQuota uint64 `mapstructure:"max_quota"`

DisableVersioning bool `mapstructure:"disable_versioning"`
}

// AsyncPropagatorOptions holds the configuration for the async propagator
Expand Down

0 comments on commit a76ce1f

Please sign in to comment.