[pve-devel] [PATCH manager] pveversion: track proxmox-backup-restore-image

2025-06-03 Thread Maximiliano Sandoval
Useful to detect whether a system is running version 0.6.0 or 0.6.1 of the package which changed to the `ntfs3` driver from the `ntfs` driver. Signed-off-by: Maximiliano Sandoval --- PVE/API2/APT.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/API2/APT.pm b/PVE/API2/APT.pm index

[pve-devel] [PATCH docs 1/2] ha-manager: remove hardware fencing from requirements

2025-05-21 Thread Maximiliano Sandoval
This is not fully integrated at the moment. The documentation for the `fencing` option in datacenter.cfg suggests that /etc/pve/ha/fence.cfg can used for configuring fence devices but such a config file is not documented anywhere. Signed-off-by: Maximiliano Sandoval --- ha-manager.adoc | 2

[pve-devel] [PATCH docs 2/2] ha-manager: move hardware watchdog out of the requirements list

2025-05-21 Thread Maximiliano Sandoval
Having a hardware watchdog is not a requirement, we move it out of the list so it is not as prominent. Signed-off-by: Maximiliano Sandoval --- ha-manager.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ha-manager.adoc b/ha-manager.adoc index 7f7f0bb..5fdd5cf 100644

[pve-devel] [PATCH docs 0/2] ha-manager: simplify requirements

2025-05-21 Thread Maximiliano Sandoval
. Maximiliano Sandoval (2): ha-manager: remove hardware fencing from requirements ha-manager: move hardware watchdog out of the requirements list ha-manager.adoc | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.39.5 ___ pve-devel mailing

[pve-devel] [PATCH ha-manager 1/3] watchdog: separate if in two parts

2025-05-19 Thread Maximiliano Sandoval
The sole purpose of this commit is to make the following commit's diff easier to read. Signed-off-by: Maximiliano Sandoval --- src/watchdog-mux.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/watchdog-mux.c b/src/watchdog-mux.c index b4bcc0c..a9

[pve-devel] [PATCH ha-manager 0/3] watchdog: sync log to disk before and after expiring

2025-05-19 Thread Maximiliano Sandoval
variable names in the second commit could use some feedback. The way the warning timeout is defined was arbitrary (10 seconds before the fence). Maximiliano Sandoval (3): watchdog: separate if in two parts watchdog: warn when about to expire watchdog: sync journal after sending expiration related

[pve-devel] [PATCH ha-manager 2/3] watchdog: warn when about to expire

2025-05-19 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- src/watchdog-mux.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/src/watchdog-mux.c b/src/watchdog-mux.c index a9017b3..e14c768 100644 --- a/src/watchdog-mux.c +++ b/src/watchdog-mux.c @@ -29,15 +29,24 @@ #define

[pve-devel] [PATCH ha-manager 3/3] watchdog: sync journal after sending expiration related messages

2025-05-19 Thread Maximiliano Sandoval
One sync comes after warning that the watchdog is about to expire, and a second right after the watchdog expires. To maximize the chances the log will contain entries relevant to a fence event. This would be extremely useful for detecting whether a node fenced. Signed-off-by: Maximiliano

[pve-devel] [PATCH cluster] datacenter config: document that the migration network affects replications

2025-05-19 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- src/PVE/DataCenterConfig.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/DataCenterConfig.pm b/src/PVE/DataCenterConfig.pm index a3db78e..205b784 100644 --- a/src/PVE/DataCenterConfig.pm +++ b/src/PVE/DataCenterConfig.pm

[pve-devel] [PATCH manager] fix #4166: restore: add resource pool selector

2025-04-30 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- www/manager6/window/Restore.js | 10 ++ 1 file changed, 10 insertions(+) diff --git a/www/manager6/window/Restore.js b/www/manager6/window/Restore.js index 22900868..8d6dfabe 100644 --- a/www/manager6/window/Restore.js +++ b/www/manager6/window

[pve-devel] [PATCH manager] ui: login: display error messages when logging

2025-04-24 Thread Maximiliano Sandoval
owser) and its information is lost without this change. Signed-off-by: Maximiliano Sandoval --- www/manager6/window/LoginWindow.js | 8 1 file changed, 8 insertions(+) diff --git a/www/manager6/window/LoginWindow.js b/www/manager6/window/LoginWindow.js index a1ba3cdb..066c053a 100644

Re: [pve-devel] [PATCH manager] pveproxy: create log directory when starting

2025-04-16 Thread Maximiliano Sandoval
Fabian Grünbichler writes: > On April 15, 2025 11:38 am, Maximiliano Sandoval wrote: >> We only create this directory while installing the package. If a user >> deletes /var/log then they will lose access to the web UI. > > until the reinstall or upgrade the packag

[pve-devel] [PATCH manager v2] pveproxy: create log directory when starting

2025-04-16 Thread Maximiliano Sandoval
We only create this directory while installing or upgrading the package. If a user deletes /var/log then they will lose access to the web UI until they either reinstall or upgrade pve-manager. Signed-off-by: Maximiliano Sandoval --- Differences from v1: - Unconditionally call mkdir+chown if

[pve-devel] [PATCH manager] pveproxy: create log directory when starting

2025-04-15 Thread Maximiliano Sandoval
We only create this directory while installing the package. If a user deletes /var/log then they will lose access to the web UI. Signed-off-by: Maximiliano Sandoval --- bin/pveproxy | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/bin/pveproxy b/bin

[pve-devel] [PATCH proxmox-i18n] update Spanish translations

2025-04-10 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- Some minor adjustments I found. Nothing urgent. es.po | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/es.po b/es.po index 2506f23..5e8c75e 100644 --- a/es.po +++ b/es.po @@ -8,7 +8,7 @@ msgstr "" "Pro

[pve-devel] [PATCH storage] fix #5181: pbs: store and read passwords as unicode

2025-04-09 Thread Maximiliano Sandoval
Previously a password "bär12345" would be stored as "b�r12345". Signed-off-by: Maximiliano Sandoval --- This has the potential for breaking existing setups. However, given that it is not possible to create such a storage in the first place (without performing a rare e

[pve-devel] [PATCH proxmox-i18n] update Spanish translations

2025-04-08 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- es.po | 190 +++--- 1 file changed, 88 insertions(+), 102 deletions(-) diff --git a/es.po b/es.po index 1f2556a..a6d7288 100644 --- a/es.po +++ b/es.po @@ -8,7 +8,7 @@ msgstr "" "Pro

[pve-devel] [PATCH proxmox-i18n] update Spanish translations

2025-04-08 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- es.po | 43 --- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/es.po b/es.po index afa25b1..2506f23 100644 --- a/es.po +++ b/es.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: proxm

Re: [pve-devel] [PATCH installer] gui: fall back to first found NIC if no default could be determined

2025-04-08 Thread Maximiliano Sandoval
server address. > > Reported-by: Christian Ebner > Signed-off-by: Christoph Heiss I am a bit late here, I tested this patch with either one or three NICs and with and without a working DHCP server. I did not notice any regression. Tested-by: Maximiliano Sandoval _

Re: [pve-devel] [PATCH installer] country.pl: load iso 3166 country codes file as UTF8

2025-04-08 Thread Maximiliano Sandoval
t;: "ci", + "côte d'ivoire": "ci", "denmark": "dk", "djibouti": "dj", "dominica": "dm", @@ -2590,8 +2590,8 @@ "romania": "ro", "russian federation": &q

Re: [pve-devel] [PATCH corosync] corosync.service: add patch to reduce log spam in broken network setups

2025-04-05 Thread Maximiliano Sandoval
Friedrich Weber writes: > If I read the journald.conf docs [1] right, the default interval is 30s > and the burst value is 1 multiplied by a factor depending on the > free disk space, I guess 4-6 on reasonable setups -- this is a lot of > messages, but as you mention probably fine for limit

[pve-devel] [PATCH qemu-server] config: add system and service credentials support

2025-04-05 Thread Maximiliano Sandoval
desktop.org/software/systemd/man/latest/systemd.system-credentials.html Suggested-by: Wolfgang Bumiller Signed-off-by: Maximiliano Sandoval --- Differences from RFC: - Fixed multiple points from the feedback in the RFC - Uses "systemd-cred$i" instead of "systemd-credential.$name&qu

Re: [pve-devel] [PATCH proxmox-ve-rs 1/1] clippy: elided lifetime has a name

2025-04-05 Thread Maximiliano Sandoval
Gabriel Goller writes: > bump, still applies If I am not mistaken, this could use `+ use<'a>` instead of `+ 'a`. ___ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH 4/4] run cargo fmt with edition 2024

2025-04-05 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- proxmox-ve-config/src/firewall/cluster.rs | 6 -- proxmox-ve-config/src/firewall/common.rs | 4 ++-- proxmox-ve-config/src/firewall/ct_helper.rs| 2 +- proxmox-ve-config/src/firewall/guest.rs| 4 ++-- proxmox-ve

[pve-devel] [PATCH 3/4] elide serde lifetimes

2025-04-04 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- proxmox-ve-config/src/firewall/parse.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxmox-ve-config/src/firewall/parse.rs b/proxmox-ve-config/src/firewall/parse.rs index 7bf00c0..8cf4757 100644 --- a/proxmox-ve-config/src

[pve-devel] [PATCH 2/4] stop using captures trick

2025-04-04 Thread Maximiliano Sandoval
See https://doc.rust-lang.org/nightly/edition-guide/rust-2024/rpit-lifetime-capture.html. Signed-off-by: Maximiliano Sandoval --- proxmox-ve-config/src/firewall/bridge.rs | 2 +- proxmox-ve-config/src/sdn/config.rs | 12 ++-- proxmox-ve-config/src/sdn/ipam.rs| 2 +- 3

Re: [pve-devel] [RFC PATCH 2/2] config: add systemd credentials support

2025-04-04 Thread Maximiliano Sandoval
Fabian Grünbichler writes: > On September 24, 2024 4:35 pm, Maximiliano Sandoval wrote: >> Allows to pass systemd credentials to a VM. See [1] for a description of >> systemd credentials. This can be potentially used to provision a VM as >> per [2]. Values can be passed

Re: [pve-devel] [PATCH corosync] corosync.service: add patch to reduce log spam in broken network setups

2025-04-04 Thread Maximiliano Sandoval
Friedrich Weber writes: > Since c761053 ("Check packets come from the correct interface > https://github.com/corosync/corosync/issues/750";) in kronosnet, > corosync will produce log messages in certain broken network setups. > See inner patch for details. Drawing attention to such setups is >

[pve-devel] [PATCH installer v2] gui: always set visible-child-name on disk dialog

2025-04-04 Thread Maximiliano Sandoval
since the visible-child (and visible-child-name) property still points to it. Reported-by: Alexander Zeidler Signed-off-by: Maximiliano Sandoval --- Differences from v1: - Improve commit message - Describe better the reproducer in the commit proxinstall | 1 + 1 file changed, 1 insertion

Re: [pve-devel] [PATCH installer] gui: always set visible-child-name on disk dialog

2025-04-04 Thread Maximiliano Sandoval
Thomas Lamprecht writes: > Am 01.04.25 um 15:09 schrieb Maximiliano Sandoval: >> The commit message should be updated, I will do that if there is a need >> for v2. > > Can you please either send out a v2 or propose a new commit message that I > can just copy+past

Re: [pve-devel] [PATCH qemu-server] config: add system and service credentials support

2025-04-03 Thread Maximiliano Sandoval
Thomas Lamprecht writes: > Am 03.04.25 um 09:49 schrieb Thomas Lamprecht: >> Am 02.04.25 um 16:36 schrieb Maximiliano Sandoval: >>> Allows to pass system and service credentials to a VM. See [1] for a >>> description of credentials. This can be potentially used to p

Re: [pve-devel] [PATCH qemu-server] config: add system and service credentials support

2025-04-03 Thread Maximiliano Sandoval
Thomas Lamprecht writes: > Am 02.04.25 um 16:36 schrieb Maximiliano Sandoval: >> Allows to pass system and service credentials to a VM. See [1] for a >> description of credentials. This can be potentially used to provision a >> VM as per [2]. Values can be passed either

Re: [pve-devel] [PATCH proxmox 2/2] network-types: add hostname type

2025-04-01 Thread Maximiliano Sandoval
Stefan Hanreich writes: > Add a type for representing Linux hostnames. These are the same > constraints as the installer enforces [1]. Lowercasing is fine as > well, since practically everything treats hostnames case-insensitively > as RFC 952 stipulates: > >> No distinction is made between upp

Re: [pve-devel] [PATCH installer] gui: always set visible-child-name on disk dialog

2025-04-01 Thread Maximiliano Sandoval
"Christoph Heiss" writes: > On Tue Mar 4, 2025 at 11:49 AM CET, Maximiliano Sandoval wrote: >> Whenever a filesystem is selected we show the size selection stack page. >> >> At the moment entering any raid setup, then entering the Advanced >> Options page

[pve-devel] [PATCH 1/4] cargo: set edition to 2024

2025-03-31 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index dc7f312..2d3f50d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ resolver = "2" [workspace.package] authors = ["Proxm

Re: [pve-devel] [PATCH v1 pve-storage 5/8] pluginbase: document hooks

2025-03-28 Thread Maximiliano Sandoval
Max Carrara writes: > Add docstrings for the following methods: > - on_add_hook > - on_update_hook > - on_delete_hook > > Signed-off-by: Max Carrara > --- > src/PVE/Storage/PluginBase.pm | 85 ++- > 1 file changed, 74 insertions(+), 11 deletions(-) > > diff --g

Re: [pve-devel] [PATCH v1 pve-storage 4/8] pluginbase: document general plugin methods

2025-03-28 Thread Maximiliano Sandoval
Max Carrara writes: > Add docstrings for the following methods: > - check_connection > - activate_storage > - deactivate_storage > - status > - cluster_lock_storage > - parse_volname > - get_subdir > - filesystem_path > - path > - find_free_diskname > > Signed-off-by: Max Carrara > --- > src/

Re: [pve-devel] [PATCH manager/storage 0/2] fix #3716: allow downloading iso/vztmpl/ova via https in proxied environments

2025-03-26 Thread Maximiliano Sandoval
ow_bug.cgi?id=5420#c0 > [6] > https://lore.proxmox.com/pve-devel/a03631a3-fe78-7f6f-137d-7ee6fdf8f...@proxmox.com/ > [7] > https://git.proxmox.com/?p=proxmox.git;a=blob;f=proxmox-notify/src/endpoints/webhook.rs;h=34dbac5488;hb=7abd2da759d#l266 > [8] > https://lore.proxm

Re: [pve-devel] [PATCH proxmox-i18n v2 2/2] make: add proxmox-datacenter-manager translations

2025-03-21 Thread Maximiliano Sandoval
Thomas Lamprecht writes: > btw. instead of pinging a series unconditionally a better approach might > be to use that as an opportunity to self-test the whole series, i.e. apply > them locally and see if all works out; that would have made most issues of > this series visible. > If that succeede

Re: [pve-devel] [PATCH proxmox-i18n v2 2/2] make: add proxmox-datacenter-manager translations

2025-03-19 Thread Maximiliano Sandoval
Maximiliano Sandoval writes: > Maximiliano Sandoval writes: > >> Maximiliano Sandoval writes: >> >>> Maximiliano Sandoval writes: >>> >>>> Maximiliano Sandoval writes: >>>> >>>>> Maximiliano Sandoval writes: >&g

[pve-devel] [PATCH manager] ui: tag: only set lowercased tags

2025-03-19 Thread Maximiliano Sandoval
At the moment, the color of the preview tag won't match the final tag once it is added if the tag contained uppercase letters. With this patch the color in the tag being created will match the color of the final tag added to a guest. Signed-off-by: Maximiliano Sandoval --- www/manager6

Re: [pve-devel] [PATCH manager] ui: do not split translatable strings

2025-03-19 Thread Maximiliano Sandoval
Maximiliano Sandoval writes: > Splitting the strings adds extra work to translators as they now have > less context to work with. > > Signed-off-by: Maximiliano Sandoval ping. ___ pve-devel mailing list pve-devel@lists.proxm

Re: [pve-devel] [PATCH installer] gui: always set visible-child-name on disk dialog

2025-03-19 Thread Maximiliano Sandoval
Maximiliano Sandoval writes: > Whenever a filesystem is selected we show the size selection stack page. > > At the moment entering any raid setup, then entering the Advanced > Options page and then selecting any non-raid setup will show the > raiddisk page since it is still th

[pve-devel] [PATCH proxmox-perl-rs 3/3] pve: tfa: write char comparison more succinctly

2025-03-15 Thread Maximiliano Sandoval
Fixes the manual_pattern_char_comparison clippy lint. Signed-off-by: Maximiliano Sandoval --- pve-rs/src/tfa.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pve-rs/src/tfa.rs b/pve-rs/src/tfa.rs index 66dca3d..2cd7396 100644 --- a/pve-rs/src/tfa.rs +++ b/pve-rs/src

[pve-devel] [PATCH proxmox-perl-rs 1/3] pve: Port to 2024 edition

2025-03-11 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- pve-rs/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pve-rs/Cargo.toml b/pve-rs/Cargo.toml index 64a7e92..81a8396 100644 --- a/pve-rs/Cargo.toml +++ b/pve-rs/Cargo.toml @@ -4,7 +4,7 @@ version = "0.9.2" descript

Re: [pve-devel] [PATCH proxmox-perl-rs 1/3] pve: Port to 2024 edition

2025-03-10 Thread Maximiliano Sandoval
Maximiliano Sandoval writes: > Signed-off-by: Maximiliano Sandoval I forgot to run rustfmt after switching to 2024 🙊. ___ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH proxmox-mail-forward 1/2] cargo: port to rust 2024 edition

2025-03-10 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- Cargo.toml | 2 +- rustfmt.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0f4e3b0..5a8e1d0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ authors = [ "Lukas Wagner ",

[pve-devel] [PATCH proxmox-mail-forward 2/2] run rustfmt

2025-03-10 Thread Maximiliano Sandoval
With rust 2024 edition. Signed-off-by: Maximiliano Sandoval --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 4662ffa..795b0f2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,9 +23,9 @@ use std::path::Path; use anyhow::Error

[pve-devel] [PATCH proxmox-perl-rs 2/3] pmg: Port to 2024 edition

2025-03-10 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- pmg-rs/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmg-rs/Cargo.toml b/pmg-rs/Cargo.toml index 2499f40..a6f4bb1 100644 --- a/pmg-rs/Cargo.toml +++ b/pmg-rs/Cargo.toml @@ -4,7 +4,7 @@ version = "0.7.7" descript

[pve-devel] [PATCH] gitignore: add pattern for build packages

2025-03-10 Thread Maximiliano Sandoval
pve-rs/libpve-rs-perl_0.9.2_amd64.buildinfo pve-rs/libpve-rs-perl_0.9.2_amd64.changes pve-rs/libpve-rs-perl_0.9.2_amd64.deb Signed-off-by: Maximiliano Sandoval --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 635276e..4c74514 100644 --- a

[pve-devel] [PATCH pve-common v2] systemd: disconnect signals

2025-03-07 Thread Maximiliano Sandoval
Dbus has a limit of 512 connections by default and signals should be disconnected as soon as they are not needed anymore. This should alleviate https://bugzilla.proxmox.com/show_bug.cgi?id=5876. Signed-off-by: Maximiliano Sandoval --- Differences from v1: - remove two guards on

Re: [pve-devel] [PATCH] systemd: disconnect signals

2025-03-07 Thread Maximiliano Sandoval
Wolfgang Bumiller writes: > On Mon, Mar 03, 2025 at 03:42:53PM +0100, Maximiliano Sandoval wrote: >> Dbus has a limit of 512 connections by default and signals should be >> disconnected as soon as they are not needed anymore. >> >> This should alleviate h

[pve-devel] [PATCH installer] gui: always set visible-child-name on disk dialog

2025-03-04 Thread Maximiliano Sandoval
-off-by: Maximiliano Sandoval --- proxinstall | 1 + 1 file changed, 1 insertion(+) diff --git a/proxinstall b/proxinstall index fe7e29f..5e61e9b 100755 --- a/proxinstall +++ b/proxinstall @@ -1358,6 +1358,7 @@ sub create_hdoption_view { $options_stack->set_visible_child_name("

[pve-devel] [PATCH] systemd: disconnect signals

2025-03-03 Thread Maximiliano Sandoval
Dbus has a limit of 512 connections by default and signals should be disconnected as soon as they are not needed anymore. This should alleviate https://bugzilla.proxmox.com/show_bug.cgi?id=5876. Signed-off-by: Maximiliano Sandoval --- src/PVE/Systemd.pm | 34

[pve-devel] [PATCH ha-manager] postinst: check whether the system is managed by systemd

2025-02-28 Thread Maximiliano Sandoval
..before running systemctl. Allows for building packages in containers not managed by systemd. Signed-off-by: Maximiliano Sandoval --- debian/pve-ha-manager.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/pve-ha-manager.postinst b/debian/pve-ha

[pve-devel] [PATCH manager] ui: do not split translatable strings

2025-02-28 Thread Maximiliano Sandoval
Splitting the strings adds extra work to translators as they now have less context to work with. Signed-off-by: Maximiliano Sandoval --- www/manager6/ceph/OSD.js| 6 +++--- www/manager6/dc/OptionView.js | 2 +- www/manager6/panel/BackupAdvancedOptions.js | 2

[pve-devel] [PATCH docs] guest-example-hookscript: fix Exmple typo

2025-02-26 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- examples/guest-example-hookscript.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/guest-example-hookscript.pl b/examples/guest-example-hookscript.pl index adeed59e..13460250 100755 --- a/examples/guest-example-hookscript.pl

[pve-devel] [PATCH installer] html: pmg: Improve wording

2025-02-26 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- html/pmg/extract3-spam.htm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/pmg/extract3-spam.htm b/html/pmg/extract3-spam.htm index 6b3551a..62bf009 100644 --- a/html/pmg/extract3-spam.htm +++ b/html/pmg/extract3-spam.htm

[pve-devel] [PATCH proxmox-i18n] es: Update translations

2025-02-26 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- es.po | 35 +-- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/es.po b/es.po index 7304b45..4ec64d0 100644 --- a/es.po +++ b/es.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: proxmox

Re: [pve-devel] [PATCH proxmox-i18n v2 2/2] make: add proxmox-datacenter-manager translations

2025-02-25 Thread Maximiliano Sandoval
"Shannon Sterz" writes: > On Fri Jan 24, 2025 at 3:37 PM CET, Maximiliano Sandoval wrote: >> The catalog-{lang}.mo files are generated only with strings that are >> relevant to the proxmox-datacenter-manager instead of the whole >> {lang}.po file. The msgmerge c

Re: [pve-devel] [PATCH proxmox-i18n v2 2/2] make: add proxmox-datacenter-manager translations

2025-02-25 Thread Maximiliano Sandoval
Maximiliano Sandoval writes: > Maximiliano Sandoval writes: > >> Maximiliano Sandoval writes: >> >>> Maximiliano Sandoval writes: >>> >>>> Maximiliano Sandoval writes: >>>> >>>>> The catalog-{lang}.mo files are ge

Re: [pve-devel] [PATCH storage v4 4/7] btrfs: forcefully set image to readwrite

2025-02-24 Thread Maximiliano Sandoval
ir/$volume"); >> return if $name ne $basename; >> - return if !defined $snap_name; >> $code->($snap_name); >> }); >> } > > but I need to ask about this patch first. Requiring the argument to be defined sounds sensible for a he

[pve-devel] [PATCH 1/3] pmxcfs: Use g_string_append when appropriate

2025-02-20 Thread Maximiliano Sandoval
g_string_append_printf should only be used when there is something to format. Signed-off-by: Maximiliano Sandoval --- Some micro optimizations for GStrings usage. The following script can be used to verify the claim that the replacements are drop-in: ```c /* test.c */ #include int main

[pve-devel] [PATCH 3/3] pmxcfg: use g_string_append_c when appropiate

2025-02-20 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- src/pmxcfs/logger.c | 2 +- src/pmxcfs/status.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pmxcfs/logger.c b/src/pmxcfs/logger.c index 0be4be6..d6e281f 100644 --- a/src/pmxcfs/logger.c +++ b/src/pmxcfs/logger.c @@ -201,7

[pve-devel] [PATCH 2/3] pmxcfs: use g_string_assign when appropiate

2025-02-20 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- src/pmxcfs/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pmxcfs/status.c b/src/pmxcfs/status.c index e76c150..7533057 100644 --- a/src/pmxcfs/status.c +++ b/src/pmxcfs/status.c @@ -973,7 +973,7

Re: [pve-devel] [PATCH proxmox-ve-rs 1/1] partially fix #6176: config: guest: change default for firewall key

2025-02-19 Thread Maximiliano Sandoval
A minor comment bellow. Stefan Hanreich writes: > When the firewall key wasn't present in the network device > configuration of a guest, the firewall defaulted to on instead of off. > Since the UI omitted the firewall setting in the API calls when it is > unchecked, there was no way for the fi

[pve-devel] [PATCH storage v4 4/7] btrfs: forcefully set image to readwrite

2025-02-19 Thread Maximiliano Sandoval
the force (-f) flag, and in such case the received_uuid property is lost. Since we know the images are only set to rw for the duration of the move, it is safe to set the flag forcefully and then in a future commit add the received_uuid property by force. Signed-off-by: Maximiliano Sandoval

[pve-devel] [PATCH storage v4 1/7] btrfs: add helper to iterate over snapshots of a subvolume

2025-02-19 Thread Maximiliano Sandoval
In this context a subvolume means a BTRFS subvolume. `$volume\@$snap_name` would be for example `btrfs_volume/images/102/vm-102-disk-0@snap_name`. Signed-off-by: Maximiliano Sandoval --- Differences from v3: - Rename regex - Delete now useless foreach_suvbol helper Differences from v2

[pve-devel] [PATCH storage v4 6/7] btrfs: remove foreach_subvol

2025-02-19 Thread Maximiliano Sandoval
This method is not used anymore. Signed-off-by: Maximiliano Sandoval --- src/PVE/Storage/BTRFSPlugin.pm | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/PVE/Storage/BTRFSPlugin.pm b/src/PVE/Storage/BTRFSPlugin.pm index bd93cc0..c82d5f7 100644 --- a/src

[pve-devel] [PATCH storage v4 3/7] btrfs: use foreach_snapshot_of_subvol helper in free_image

2025-02-19 Thread Maximiliano Sandoval
Replaces the current use without changes. The `$dir` variable is not used anymore at that moment so it is defined later. Signed-off-by: Maximiliano Sandoval --- src/PVE/Storage/BTRFSPlugin.pm | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/PVE/Storage

[pve-devel] [PATCH storage v4 7/7] btrfs: rename snapshot parameter

2025-02-19 Thread Maximiliano Sandoval
It was originally introduced as $snapshot to match the argument name of foreach_subvol, we rename it here to make it clear that it only contains the snapshot name. Signed-off-by: Maximiliano Sandoval --- src/PVE/Storage/BTRFSPlugin.pm | 8 1 file changed, 4 insertions(+), 4 deletions

[pve-devel] [PATCH storage v4 5/7] btrfs: rename volume regex

2025-02-19 Thread Maximiliano Sandoval
The regex only lists snapshots. Signed-off-by: Maximiliano Sandoval --- src/PVE/Storage/BTRFSPlugin.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PVE/Storage/BTRFSPlugin.pm b/src/PVE/Storage/BTRFSPlugin.pm index 9fc51ef..bd93cc0 100644 --- a/src/PVE/Storage

[pve-devel] [PATCH storage v4 2/7] fix #3873: btrfs: use foreach_snapshot_of_subvol helper in volume_export

2025-02-19 Thread Maximiliano Sandoval
disk `vm-100-disk-1` which is also listed by the dir_glib_foreach. By using the helper we only iterate over the snapshots of the guest. Signed-off-by: Maximiliano Sandoval --- src/PVE/Storage/BTRFSPlugin.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PVE/St

[pve-devel] [PATCH storage v3 2/4] fix #3873: btrfs: use foreach_snapshot_of_subvol helper in volume_export

2025-02-19 Thread Maximiliano Sandoval
disk `vm-100-disk-1` which is also listed by the dir_glib_foreach. By using the helper we only iterate over the snapshots of the guest. Signed-off-by: Maximiliano Sandoval --- src/PVE/Storage/BTRFSPlugin.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PVE/St

[pve-devel] [PATCH storage v3 1/4] btrfs: add helper to iterate over snapshots of a subvolume

2025-02-19 Thread Maximiliano Sandoval
In this context a subvolume means a BTRFS subvolume. `$volume\@$snap_name` would be for example `btrfs_volume/images/102/vm-102-disk-0@snap_name`. Signed-off-by: Maximiliano Sandoval --- Differences from v2: - Split into multiple commits - Simplify patch - Use only the snapshot name in the

[pve-devel] [PATCH storage v3 3/4] btrfs: use foreach_snapshot_of_subvol helper in free_image

2025-02-19 Thread Maximiliano Sandoval
Replaces the current use without changes. The `$dir` variable is not used anymore at that moment so it is defined later. Signed-off-by: Maximiliano Sandoval --- src/PVE/Storage/BTRFSPlugin.pm | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/PVE/Storage

[pve-devel] [PATCH storage v3 4/4] btrfs: forcefully set image to readwrite

2025-02-19 Thread Maximiliano Sandoval
the force (-f) flag, and in such case the received_uuid property is lost. Since we know the images are only set to rw for the duration of the move, it is safe to set the flag forcefully and then in a future commit add the received_uuid property by force. Signed-off-by: Maximiliano Sandoval

[pve-devel] [PATCH storage v2 2/2] btrfs: forcefully set image to readwrite

2025-02-18 Thread Maximiliano Sandoval
the force (-f) flag, and in such case the received_uuid property is lost. Since we know the images are only set to rw for the duration of the move, it is safe to set the flag forcefully and then in a future commit add the received_uuid property by force. Signed-off-by: Maximiliano Sandoval

[pve-devel] [PATCH storage v2 1/2] fix #3873: btrfs: check for correct subvolume taking snapshot

2025-02-18 Thread Maximiliano Sandoval
disk `vm-100-disk-1` which is also listed by the dir_glib_foreach. This change adds a helper foreach_snapshot_of_subvol which only lists snapshots for the current volume. The helper is also implemented in the other place where we iterate over snapshots. Signed-off-by: Maximiliano San

Re: [pve-devel] [PATCH storage 1/2] fix #3873: btrfs: check for correct subvolume taking snapshot

2025-02-18 Thread Maximiliano Sandoval
Fiona Ebner writes: > Am 09.07.24 um 13:51 schrieb Maximiliano Sandoval: >> Suppose we are doing a snapshot of disk 0 for VM 100. The >> dir_glob_foreach runs over $path=/subvolume/images/100, lists all >> snapshot names and appends their names to the path of the dis

Re: [pve-devel] [PATCH qemu 1/2] vm-network-scripts: move scripts to /usr/libexec

2025-02-18 Thread Maximiliano Sandoval
Fabian Grünbichler writes: > I think we do need to ship the file in both places before 9.0 and switch > over to using the new location (i.e., almost what this patch does), and > then we can drop the old location with 9.0 since we know that no > reference to the old location should still be in us

[pve-devel] [PATCH qemu-server v2 2/2] test: Adapt to changes in network scripts location

2025-02-18 Thread Maximiliano Sandoval
>From the previous commit. Signed-off-by: Maximiliano Sandoval --- test/cfg2cmd/bootorder-empty.conf.cmd| 2 +- test/cfg2cmd/bootorder-legacy.conf.cmd | 2 +- test/cfg2cmd/bootorder.conf.cmd | 2 +- test/cfg2cmd/efidisk

[pve-devel] [PATCH qemu-server v2 1/2] vm-network-scripts: move scripts to /usr/libexec

2025-02-18 Thread Maximiliano Sandoval
fit the use case here, see [FHS 5.8]. For the sake of preventing race conditions we ship both versions until version 9. [FHS 4.7]: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s07.html [FHS 5.8]: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s08.html Signed-off-by: Maximiliano

Re: [pve-devel] [PATCH proxmox-i18n v2 2/2] make: add proxmox-datacenter-manager translations

2025-02-18 Thread Maximiliano Sandoval
Maximiliano Sandoval writes: > Maximiliano Sandoval writes: > >> Maximiliano Sandoval writes: >> >>> Maximiliano Sandoval writes: >>> >>>> The catalog-{lang}.mo files are generated only with strings that are >>>> relevant to the pr

Re: [pve-devel] [PATCH proxmox-i18n v2 2/2] make: add proxmox-datacenter-manager translations

2025-02-11 Thread Maximiliano Sandoval
Maximiliano Sandoval writes: > Maximiliano Sandoval writes: > >> Maximiliano Sandoval writes: >> >>> The catalog-{lang}.mo files are generated only with strings that are >>> relevant to the proxmox-datacenter-manager instead of the whole >>> {lan

Re: [pve-devel] [PATCH pve-docs] fix #4554: Elaborated on the purpose of different output formats

2025-02-10 Thread Maximiliano Sandoval
Some small comments bellow. Alexander Abraham writes: > Elaborated on the intended differences between the output > formats "text" and "json" for the "--output-format" option > of the "pvesh" utility. > > Signed-off-by: Alexander Abraham > --- > output-format.adoc | 12 +--- > 1 file

Re: [pve-devel] [PATCH proxmox-i18n v2 2/2] make: add proxmox-datacenter-manager translations

2025-02-05 Thread Maximiliano Sandoval
Maximiliano Sandoval writes: > Maximiliano Sandoval writes: > >> The catalog-{lang}.mo files are generated only with strings that are >> relevant to the proxmox-datacenter-manager instead of the whole >> {lang}.po file. The msgmerge command will produce all strings co

Re: [pve-devel] [PATCH proxmox-i18n v2 2/2] make: add proxmox-datacenter-manager translations

2025-01-30 Thread Maximiliano Sandoval
Maximiliano Sandoval writes: > The catalog-{lang}.mo files are generated only with strings that are > relevant to the proxmox-datacenter-manager instead of the whole > {lang}.po file. The msgmerge command will produce all strings containing > in the {lang}.po file but the ones

Re: [pve-devel] [PATCH installer 3/3] fix #2502: proxinstall: set cidr text manually

2025-01-30 Thread Maximiliano Sandoval
Maximiliano Sandoval writes: >> Instead of relying on the device_change_handler callback (which saves >> the config) we manually set the text to the right value. >> >> Signed-off-by: Maximiliano Sandoval >> --- > > I am not completely sure if this patch s

[pve-devel] [PATCH widget-toolkit] fix #6088: notification: matcher: use more descriptive strings

2025-01-28 Thread Maximiliano Sandoval
Signed-off-by: Maximiliano Sandoval --- The longest translation of "At least one rule does not match" has only 4 more characters than the original, this is not a problem for the size we have available as in most cases the rules carry even longer text. src/window/NotificationMatcherEd

[pve-devel] [PATCH proxmox-i18n v2 2/2] make: add proxmox-datacenter-manager translations

2025-01-24 Thread Maximiliano Sandoval
lural forms. Signed-off-by: Maximiliano Sandoval --- .gitmodules| 9 + Makefile | 33 ++--- debian/control | 8 +++- debian/pdm-i18n.install| 1 + proxmox-datacenter-manager | 1 + proxmox-yew

Re: [pve-devel] [PATCH proxmox-i18n 2/2] make: add proxmox-datacenter-manager translations

2025-01-24 Thread Maximiliano Sandoval
Thomas Lamprecht writes: > Am 22.01.25 um 13:22 schrieb Maximiliano Sandoval: >> Maximiliano Sandoval writes: >>> One thing to note is that xtr, unlike our script to extract translations >>> will add comments, context, and plural forms. >> >> I forgot to

[pve-devel] [PATCH proxmox-i18n v2 1/2] makefile: prefer using xgettext over msgcat

2025-01-24 Thread Maximiliano Sandoval
For concatenating .pot files. From [1]: > To concatenate POT files, better use xgettext, not msgcat, because > msgcat would choke on the undefined charsets in the specified POT > files. [1] https://www.gnu.org/software/gettext/manual/html_node/msgcat-Invocation.html Signed-off-by: Ma

Re: [pve-devel] [PATCH proxmox-i18n 2/2] make: add proxmox-datacenter-manager translations

2025-01-22 Thread Maximiliano Sandoval
Thomas Lamprecht writes: > Am 22.01.25 um 13:22 schrieb Maximiliano Sandoval: >> Maximiliano Sandoval writes: >>> One thing to note is that xtr, unlike our script to extract translations >>> will add comments, context, and plural forms. >> >> I forgot to

Re: [pve-devel] [PATCH proxmox-i18n 2/2] make: add proxmox-datacenter-manager translations

2025-01-22 Thread Maximiliano Sandoval
Maximiliano Sandoval writes: > The catalog-{lang}.mo files are generated only with strings that are > relevant to the proxmox-datacenter-manager instead of the whole > {lang}.po file. The msgmerge command will produce all strings containing > in the {lang}.po file but the ones

[pve-devel] [PATCH proxmox-i18n 2/2] make: add proxmox-datacenter-manager translations

2025-01-22 Thread Maximiliano Sandoval
lural forms. Signed-off-by: Maximiliano Sandoval --- At the moment this won't compile without changes to proxmox-yew-widget-toolkit since the msgid "Warning" is both used for a plural and singular string. Adding a context to the plural variant fixes this: ```diff modified src

[pve-devel] [PATCH proxmox-i18n 1/2] makefile: prefer using xgettext over msgcat

2025-01-22 Thread Maximiliano Sandoval
For concatenating .pot files. From [1]: > To concatenate POT files, better use xgettext, not msgcat, because > msgcat would choke on the undefined charsets in the specified POT > files. [1] https://www.gnu.org/software/gettext/manual/html_node/msgcat-Invocation.html Signed-off-by: Ma

Re: [pve-devel] [PATCH] webhook edit: do not split translatable strings

2025-01-15 Thread Maximiliano Sandoval
Maximiliano Sandoval writes: > Splitting translatable strings deprives translators for context which > might be needed for getting the correct tenses or genders. See [1] for > example. > > [1] > https://wiki.gnome.org/TranslationProject(2f)DevGuidelines(2f)Never(20)split

Re: [pve-devel] [PATCH dab] fix a few typos

2025-01-15 Thread Maximiliano Sandoval
Jing Luo via pve-devel writes: > -extended description over several lines (indended by space) may follow. > +extended description over several lines (intended by space) may follow. I think this should be "indented" instead of indended or intended. > @@ -517,7 +517,7 @@ All generated templates

Re: [pve-devel] [PATCH installer 3/3] fix #2502: proxinstall: set cidr text manually

2024-12-17 Thread Maximiliano Sandoval
> Instead of relying on the device_change_handler callback (which saves > the config) we manually set the text to the right value. > > Signed-off-by: Maximiliano Sandoval > --- I am not completely sure if this patch series preserves the intentional UI flow. Some testing w

  1   2   3   4   >