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 <jkoberg@owncloud.com>
  • Loading branch information
kobergj committed Jun 27, 2024
1 parent 832d183 commit 5924775
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 @@ -151,10 +151,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 @@ -82,6 +82,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 5924775

Please sign in to comment.