Skip to content

Per-provider storage capabilities - #932

Merged
butonic merged 7 commits into
opencloud-eu:workpackagesfrom
dragonchaser:backport-wp1-717
Nov 5, 2026
Merged

butonic merged 7 commits into
opencloud-eu:workpackagesfrom
dragonchaser:backport-wp1-717

Conversation

@dragonchaser

Copy link
Copy Markdown
Member

Adds per-provider storage capability reporting to the OCS capabilities response while preserving existing behavior for drivers without explicit capability declarations.

@dragonchaser
dragonchaser marked this pull request as ready for review November 4, 2026 07:46
@dragonchaser
dragonchaser requested a review from butonic November 4, 2026 08:26
mklos-kw and others added 6 commits November 4, 2026 15:55
^ Conflicts:
^	pkg/upload/coordinator.go
^ Conflicts:
^	pkg/upload/coordinator.go
^ Conflicts:
^	pkg/upload/coordinator.go
^ Conflicts:
^	pkg/upload/coordinator.go
Signed-off-by: Christian Richter <[email protected]>
capabilities.go was not gofmt'ed after the deprecation comments were
added to CapabilitiesFiles.

Marking Dav.Trashbin as deprecated makes staticcheck flag the handler
that sets its default. We still announce trashbin to clients that
don't read the providers section yet, so we silence SA1019 there
instead of dropping the default.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic
butonic merged commit cefa485 into opencloud-eu:workpackages Nov 5, 2026
19 checks passed
butonic added a commit that referenced this pull request Nov 5, 2026
Brings in the storage capabilities from
#932. Its Capabilities method
on pkg/storage/utils/decomposedfs goes with the deleted copy; the next
commit declares it on the pkg fork.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
butonic added a commit that referenced this pull request Nov 5, 2026
#932 declared decomposedfs
fully writeable on pkg/storage/utils/decomposedfs only, which main has
deleted. We now state it on the pkg fork, so the decomposed and
decomposeds3 drivers report it as a decision rather than through the
FullCapabilities fallback. posix embeds storage.FS, so it still gets
the fallback, with the same result.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@dragonchaser
dragonchaser deleted the backport-wp1-717 branch November 5, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants