Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose DisableVersioning Config #4742

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading