From: "Fabian Grünbichler" <f.gruenbichler@proxmox.com>
To: Gabriel Goller <g.goller@proxmox.com>, pbs-devel@lists.proxmox.com
Subject: Re: [pbs-devel] [PATCH proxmox-backup v3 2/3] fix #3786: ui/cli: add resync-corrupt option on sync-jobs
Date: Wed, 20 Nov 2024 14:12:17 +0100 [thread overview]
Message-ID: <173210833764.198988.6832521006255309425@yuna.proxmox.com> (raw)
In-Reply-To: <20241105104015.162094-3-g.goller@proxmox.com>
nit: might look better moved to the right side of the window, but no hard
feelings either way
Quoting Gabriel Goller (2024-11-05 11:40:14)
> Add the `resync-corrupt` option to the ui and the
> `proxmox-backup-manager` cli. It is listed in the `Advanced` section,
> because it slows the sync-job down and is useless if no verification
> job was run beforehand.
>
> Originally-by: Shannon Sterz <s.sterz@proxmox.com>
> Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
> ---
> src/bin/proxmox-backup-manager.rs | 9 +++++++++
> www/window/SyncJobEdit.js | 11 +++++++++++
> 2 files changed, 20 insertions(+)
>
> diff --git a/src/bin/proxmox-backup-manager.rs b/src/bin/proxmox-backup-manager.rs
> index 38a1cf0f5881..08728e9d7250 100644
> --- a/src/bin/proxmox-backup-manager.rs
> +++ b/src/bin/proxmox-backup-manager.rs
> @@ -339,6 +339,10 @@ fn task_mgmt_cli() -> CommandLineInterface {
> schema: TRANSFER_LAST_SCHEMA,
> optional: true,
> },
> + "resync-corrupt": {
> + schema: RESYNC_CORRUPT_SCHEMA,
> + optional: true,
> + },
> }
> }
> )]
> @@ -355,6 +359,7 @@ async fn pull_datastore(
> group_filter: Option<Vec<GroupFilter>>,
> limit: RateLimitConfig,
> transfer_last: Option<usize>,
> + resync_corrupt: Option<bool>,
> param: Value,
> ) -> Result<Value, Error> {
> let output_format = get_output_format(¶m);
> @@ -391,6 +396,10 @@ async fn pull_datastore(
> args["transfer-last"] = json!(transfer_last)
> }
>
> + if let Some(resync_corrupt) = resync_corrupt {
> + args["resync-corrupt"] = Value::from(resync_corrupt);
> + }
> +
> let mut limit_json = json!(limit);
> let limit_map = limit_json
> .as_object_mut()
> diff --git a/www/window/SyncJobEdit.js b/www/window/SyncJobEdit.js
> index 6543995e8800..a3c497fc2185 100644
> --- a/www/window/SyncJobEdit.js
> +++ b/www/window/SyncJobEdit.js
> @@ -321,6 +321,17 @@ Ext.define('PBS.window.SyncJobEdit', {
> deleteEmpty: '{!isCreate}',
> },
> },
> + {
> + fieldLabel: gettext('Resync corrupt snapshots'),
> + xtype: 'proxmoxcheckbox',
> + name: 'resync-corrupt',
> + autoEl: {
> + tag: 'div',
> + 'data-qtip': gettext('Re-sync snapshots, whose verfification failed.'),
> + },
> + uncheckedValue: false,
> + value: false,
> + },
> ],
> },
> {
> --
> 2.39.5
>
>
>
> _______________________________________________
> pbs-devel mailing list
> pbs-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
>
>
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
next prev parent reply other threads:[~2024-11-20 13:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-05 10:40 [pbs-devel] [PATCH proxmox-backup v3 0/3] fix #3786: resync corrupt chunks in sync-job Gabriel Goller
2024-11-05 10:40 ` [pbs-devel] [PATCH proxmox-backup v3 1/3] fix #3786: api: add resync-corrupt option to sync jobs Gabriel Goller
2024-11-20 13:11 ` Fabian Grünbichler
2024-11-21 10:04 ` Gabriel Goller
2024-11-21 10:09 ` Fabian Grünbichler
2024-11-21 10:30 ` Gabriel Goller
2024-11-05 10:40 ` [pbs-devel] [PATCH proxmox-backup v3 2/3] fix #3786: ui/cli: add resync-corrupt option on sync-jobs Gabriel Goller
2024-11-20 13:12 ` Fabian Grünbichler [this message]
2024-11-21 10:18 ` Gabriel Goller
2024-11-05 10:40 ` [pbs-devel] [PATCH proxmox-backup v3 3/3] fix #3786: docs: add resync-corrupt option to sync-job Gabriel Goller
2024-11-21 13:34 ` [pbs-devel] [PATCH proxmox-backup v3 0/3] fix #3786: resync corrupt chunks in sync-job Gabriel Goller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=173210833764.198988.6832521006255309425@yuna.proxmox.com \
--to=f.gruenbichler@proxmox.com \
--cc=g.goller@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox