From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 751D71FF161 for ; Tue, 13 Aug 2024 18:16:17 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 56F4F70A5; Tue, 13 Aug 2024 18:16:28 +0200 (CEST) From: Christoph Heiss To: pve-devel@lists.proxmox.com Date: Tue, 13 Aug 2024 18:15:32 +0200 Message-ID: <20240813161538.1660140-4-c.heiss@proxmox.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240813161538.1660140-1-c.heiss@proxmox.com> References: <20240813161538.1660140-1-c.heiss@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.030 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pve-devel] [PATCH installer v2 3/5] fix #5250: proxinstall: expose new btrfs `compress` option X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" Signed-off-by: Christoph Heiss --- Changes v1 -> v2: * no changes * moved some mount option setup code to previous patch proxinstall | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/proxinstall b/proxinstall index 12f3eaa..c7776f0 100755 --- a/proxinstall +++ b/proxinstall @@ -1160,6 +1160,21 @@ my $create_raid_advanced_grid = sub { my $create_btrfs_raid_advanced_grid = sub { my ($hdsize_btn) = @_; my $labeled_widgets = []; + + my $combo_compress = Gtk3::ComboBoxText->new(); + $combo_compress->set_tooltip_text("btrfs compression algorithm for boot volume"); + my $comp_opts = ["on", "off", "zlib", "lzo", "zstd"]; + foreach my $opt (@$comp_opts) { + $combo_compress->append($opt, $opt); + } + my $compress = Proxmox::Install::Config::get_btrfs_opt('compress') // 'off'; + $combo_compress->set_active_id($compress); + $combo_compress->signal_connect (changed => sub { + my $w = shift; + Proxmox::Install::Config::set_btrfs_opt('compress', $w->get_active_text()); + }); + push @$labeled_widgets, ['compress', $combo_compress]; + push @$labeled_widgets, ['hdsize', $hdsize_btn, 'GB']; return $create_label_widget_grid->($labeled_widgets);; }; -- 2.45.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel