all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH manager] ui: allow setting skip-freeze-fs in replication jobs
Date: Fri, 27 Nov 2026 10:47:42 +0100	[thread overview]
Message-ID: <20261127094746.152663-1-m.sandoval@proxmox.com> (raw)

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---

Notes:
    This was tested when
    
    - Creating a replication job
    - Editing a replication job

 www/manager6/grid/Replication.js | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/www/manager6/grid/Replication.js b/www/manager6/grid/Replication.js
index 86208401c..88bb221ee 100644
--- a/www/manager6/grid/Replication.js
+++ b/www/manager6/grid/Replication.js
@@ -7,6 +7,8 @@ Ext.define('PVE.window.ReplicaEdit', {
     url: '/cluster/replication',
     method: 'POST',
 
+    viewModel: {},
+
     initComponent: function () {
         var me = this;
 
@@ -50,6 +52,24 @@ Ext.define('PVE.window.ReplicaEdit', {
                 fieldLabel: gettext('Comment'),
                 name: 'comment',
             },
+            {
+                xtype: 'proxmoxcheckbox',
+                name: 'freeze-fs',
+                reference: 'freeze_fs',
+                defaultValue: 'on',
+                checked: true,
+                fieldLabel: gettext('Freeze guest filesystems'),
+            },
+            {
+                xtype: 'displayfield',
+                userCls: 'pmx-hint',
+                value: gettext(
+                    'Freeze/thaw for guest filesystems disabled. This can lead to inconsistent disk images during replications.',
+                ),
+                bind: {
+                    hidden: '{freeze_fs.checked}',
+                },
+            },
             {
                 xtype: 'proxmoxcheckbox',
                 name: 'enabled',
@@ -71,10 +91,14 @@ Ext.define('PVE.window.ReplicaEdit', {
                     values.disable = values.enabled ? 0 : 1;
                     delete values.enabled;
 
+                    values['skip-freeze-fs'] = values['freeze-fs'] ? 0 : 1;
+                    delete values['freeze-fs'];
+
                     PVE.Utils.delete_if_default(values, 'rate', '', win.isCreate);
                     PVE.Utils.delete_if_default(values, 'disable', 0, win.isCreate);
                     PVE.Utils.delete_if_default(values, 'schedule', '*/15', win.isCreate);
                     PVE.Utils.delete_if_default(values, 'comment', '', win.isCreate);
+                    PVE.Utils.delete_if_default(values, 'skip-freeze-fs', 0, win.isCreate);
 
                     if (win.isCreate) {
                         values.type = 'local';
@@ -117,6 +141,7 @@ Ext.define('PVE.window.ReplicaEdit', {
             me.load({
                 success: function (response, options) {
                     response.result.data.enabled = !response.result.data.disable;
+                    response.result.data['freeze-fs'] = !response.result.data['skip-freeze-fs'];
                     me.setValues(response.result.data);
                     me.digest = response.result.data.digest;
                 },
@@ -482,6 +507,7 @@ Ext.define(
                 { name: 'guest', type: 'integer' },
                 { name: 'jobnum', type: 'integer' },
                 { name: 'schedule', defaultValue: '*/15' },
+                { name: 'skip-freeze-fs', defaultValue: '' },
                 { name: 'disable', defaultValue: '' },
                 {
                     name: 'enabled',
@@ -489,6 +515,12 @@ Ext.define(
                         return !data.disable;
                     },
                 },
+                {
+                    name: 'freeze-fs',
+                    calculate: function (data) {
+                        return !data['skip-freeze-fs'];
+                    },
+                },
             ],
         });
 
-- 
2.47.3





                 reply	other threads:[~2026-11-27  9:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20261127094746.152663-1-m.sandoval@proxmox.com \
    --to=m.sandoval@proxmox.com \
    --cc=pve-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal