* [PATCH manager] ui: allow setting skip-freeze-fs in replication jobs
@ 2026-11-27 9:47 Maximiliano Sandoval
0 siblings, 0 replies; only message in thread
From: Maximiliano Sandoval @ 2026-11-27 9:47 UTC (permalink / raw)
To: pve-devel
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-27 9:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 9:47 [PATCH manager] ui: allow setting skip-freeze-fs in replication jobs Maximiliano Sandoval
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.