public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: Thomas Lamprecht <t.lamprecht@proxmox.com>
Cc: pve-devel@lists.proxmox.com
Subject: Re: [PATCH manager v2 5/7] ui: qga: add checkbox for guest-fsfreeze
Date: Tue, 17 Mar 2026 09:00:51 +0100	[thread overview]
Message-ID: <s8otsuedgwc.fsf@toolbox> (raw)
In-Reply-To: <949ba54f-e58b-4535-b103-9840e0380298@proxmox.com> (Thomas Lamprecht's message of "Mon, 16 Mar 2026 22:41:23 +0100")

Thomas Lamprecht <t.lamprecht@proxmox.com> writes:

> Am 13.03.26 um 10:55 schrieb Maximiliano Sandoval:
>> We re-use the same components from the 'freeze-fs-on-backup' checkbox
>> but without referencing that this only affects backups.
>> 
>> Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
>> ---
>>  www/manager6/form/AgentFeatureSelector.js | 30 +++++++++++++++++++++++
>>  1 file changed, 30 insertions(+)
>> 
>> diff --git a/www/manager6/form/AgentFeatureSelector.js b/www/manager6/form/AgentFeatureSelector.js
>> index b64837b7..36e5bd8a 100644
>> --- a/www/manager6/form/AgentFeatureSelector.js
>> +++ b/www/manager6/form/AgentFeatureSelector.js
>> @@ -21,6 +21,30 @@ Ext.define('PVE.form.AgentFeatureSelector', {
>>              },
>>              disabled: true,
>>          },
>> +        {
>> +            xtype: 'proxmoxcheckbox',
>> +            boxLabel: gettext(
>> +                'Freeze/thaw guest filesystems during certain operations for consistency',
>> +            ),
>> +            name: 'guest-fsfreeze',
>> +            reference: 'guest_fsfreeze',
>> +            bind: {
>> +                disabled: '{!enabled.checked}',
>> +            },
>> +            disabled: true,
>> +            uncheckedValue: '0',
>> +            defaultValue: '1',
>> +        },
>> +        {
>> +            xtype: 'displayfield',
>> +            userCls: 'pmx-hint',
>> +            value: gettext(
>> +                'Freeze/thaw for guest filesystems disabled. This can lead to inconsistent disk images after performing certain operations.',
>
> very ambiguous wording - what operations? Commit message doesn't give
> any hints either. Is there at least a docs change for users to learn
> what actual operations this will happen?

The modes are documented at [pve-admin] which is right after where the
"Help" button in the dialog points to, however, the online documentation
has not been updated to contain [docs#862cd43b0]. Given that it is five
operation, some with conditionals, I opted to not give a full
explanation here.

[pve-admin] https://pve.proxmox.com/pve-docs/pve-admin-guide.html#qm_qga_fsfreeze
[docs#862cd43b0] https://git.proxmox.com/?p=pve-docs.git;a=commitdiff;h=862cd43b09245de212332bc3b9b03dae0de7ccb8

> btw. this series could have been like three, maybe four commits,
> some semantic separation is good, but not every tiny clean-up is
> a dedicated semantic change.
>
>> +            ),
>> +            bind: {
>> +                hidden: '{guest_fsfreeze.checked}',
>> +            },
>> +        },
>>          {
>>              xtype: 'displayfield',
>>              userCls: 'pmx-hint',
>> @@ -75,6 +99,9 @@ Ext.define('PVE.form.AgentFeatureSelector', {
>>          if (PVE.Parser.parseBoolean(values['freeze-fs-on-backup'])) {
>>              delete values['freeze-fs-on-backup'];
>>          }
>> +        if (PVE.Parser.parseBoolean(values['guest-fsfreeze'])) {
>> +            delete values['guest-fsfreeze'];
>> +        }
>>  
>>          const agentstr = PVE.Parser.printPropertyString(values, 'enabled');
>>          return { agent: agentstr };
>> @@ -85,6 +112,9 @@ Ext.define('PVE.form.AgentFeatureSelector', {
>>          if (!Ext.isDefined(res['freeze-fs-on-backup'])) {
>>              res['freeze-fs-on-backup'] = 1;
>>          }
>> +        if (!Ext.isDefined(res['guest-fsfreeze'])) {
>> +            res['guest-fsfreeze'] = 1;
>> +        }
>>  
>>          this.callParent([res]);
>>      },

-- 
Maximiliano




  reply	other threads:[~2026-03-17  8:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-13  9:55 [PATCH manager v2 0/7] " Maximiliano Sandoval
2026-03-13  9:55 ` [PATCH manager v2 1/7] ui: utils: support guest-fsfreeze at render_qga_features Maximiliano Sandoval
2026-03-13  9:55 ` [PATCH manager v2 2/7] ui: qga: merge translatable string Maximiliano Sandoval
2026-03-13  9:55 ` [PATCH manager v2 3/7] ui: qga: move freeze-fs-on-backup to advanced opts Maximiliano Sandoval
2026-03-13  9:55 ` [PATCH manager v2 4/7] ui: qga: note that freeze-fs-on-backup is deprecated Maximiliano Sandoval
2026-03-13  9:55 ` [PATCH manager v2 5/7] ui: qga: add checkbox for guest-fsfreeze Maximiliano Sandoval
2026-03-16 21:41   ` Thomas Lamprecht
2026-03-17  8:00     ` Maximiliano Sandoval [this message]
2026-03-13  9:55 ` [PATCH manager v2 6/7] ui: qga: call parameter me instead of this Maximiliano Sandoval
2026-03-13  9:55 ` [PATCH manager v2 7/7] ui: qga: hide freeze-fs-on-backup conditionally Maximiliano Sandoval
2026-03-16 21:37   ` Thomas Lamprecht
2026-03-16 15:29 ` applied: [PATCH manager v2 0/7] ui: qga: add checkbox for guest-fsfreeze Fiona Ebner

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=s8otsuedgwc.fsf@toolbox \
    --to=m.sandoval@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    --cc=t.lamprecht@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
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal