[pbs-devel] [PATCH proxmox-backup 3/4] api: verify: add worker-threads to update endpoint
Nicolas Frey
n.frey at proxmox.com
Wed Nov 5 16:51:28 CET 2025
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)?;
--
2.47.3
More information about the pbs-devel
mailing list