[pbs-devel] applied: [PATCH proxmox 5/5] pbs-api-types: add fallback variants to enums in public API

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Dec 1 04:29:10 CET 2025


On Thu, 20 Nov 2025 15:50:13 +0100, Stefan Hanreich wrote:
> In order to be able to provide forwards-compatibility in the Proxmox
> Datacenter Manager, add fallback variants to all enums that are
> exposed in the public API. This prevents breakage on PDM side whenever
> a new enum variant is added in PBS.
> 
> The fallbacks are feature-guarded, so PBS can use the strict enums
> without having to handle any fallback variants. This is unnecessary,
> because pbs-api-types and proxmox-backup are updated in tandem, so
> proxmox-backup should never run into the situation of having to handle
> unknown variants. Only the datacenter manager will use this feature
> flag for now, since it needs to potentially handle unknown variants.
> 
> [...]

Applied, thanks!

[5/5] pbs-api-types: add fallback variants to enums in public API
      commit: f1484e9dc8dae5cd4209eb13cd4893d9df71f56c




More information about the pbs-devel mailing list