[pbs-devel] [PATCH proxmox-backup 3/4] api: verify: add worker-threads to update endpoint
Christian Ebner
c.ebner at proxmox.com
Thu Nov 6 10:13:28 CET 2025
Again a short commit message would be nice, e.g.
Allows to add, update or delete the worker-thread property in the verify
job config via the API. This will control the number of workers to read
(and verify?) chunks in the verification job.
On 11/5/25 4:51 PM, Nicolas Frey wrote:
> Signed-off-by: Nicolas Frey <n.frey at proxmox.com>
> ---
> src/api2/config/verify.rs | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/src/api2/config/verify.rs b/src/api2/config/verify.rs
> index e71e0c2e..2847c984 100644
> --- a/src/api2/config/verify.rs
> +++ b/src/api2/config/verify.rs
> @@ -149,6 +149,8 @@ pub enum DeletableProperty {
> Ns,
> /// Delete max-depth property, defaulting to full recursion again
> MaxDepth,
> + /// Delete worker-threads property
> + WorkerThreads,
> }
>
> #[api(
> @@ -229,6 +231,9 @@ pub fn update_verification_job(
> DeletableProperty::MaxDepth => {
> data.max_depth = None;
> }
> + DeletableProperty::WorkerThreads => {
> + data.worker_threads = None;
> + }
> }
> }
> }
> @@ -266,6 +271,9 @@ pub fn update_verification_job(
> data.max_depth = Some(max_depth);
> }
> }
> + if update.worker_threads.is_some() {
> + data.worker_threads = update.worker_threads;
> + }
>
> // check new store and NS
> user_info.check_privs(&auth_id, &data.acl_path(), PRIV_DATASTORE_VERIFY, true)?;
More information about the pbs-devel
mailing list