From: "Michael Köppl" <m.koeppl@proxmox.com>
To: "Lukas Sichert" <l.sichert@proxmox.com>, <pve-devel@lists.proxmox.com>
Subject: Re: [PATCH storage 1/2] fix #7339: lvmthick: add worker to free space of to be deleted VMs
Date: Mon, 23 Mar 2026 11:31:36 +0100 [thread overview]
Message-ID: <DHA3CMV4VBMI.14WCK95P7U5AW@proxmox.com> (raw)
In-Reply-To: <20260323101506.56098-2-l.sichert@proxmox.com>
needs a `make tidy`. also left 2 comment inline
On Mon Mar 23, 2026 at 11:14 AM CET, Lukas Sichert wrote:
[snip]
> - if ($scfg->{saferemove}) {
> + if ($scfg->{saferemove} || $scfg->{issue_blkdiscard}) {
> for my $name (@$volnames) {
> # avoid long running task, so we only rename here
> my $cmd = ['/sbin/lvrename', $vg, $name, "del-$name"];
> run_command($cmd, errmsg => "lvrename '$vg/$name' error");
> }
> - return $zero_out_worker;
> + return sub {
> + $blkdiscard_worker->($scfg->{saferemove}, $scfg->{issue_blkdiscard});
> + };
> } else {
> for my $name (@$volnames) {
> my $cmd = ['/sbin/lvremove', '-f', "$vg/$name"];
> @@ -428,6 +436,10 @@ sub properties {
> description => "Zero-out data when removing LVs.",
> type => 'boolean',
> },
> + issue_blkdiscard => {
> + description => "Free Storage space when removing LVs.",
nit: s/Storage/storage to have the same capitalization as in other
description fields
> + type => 'boolean',
> + },
> 'saferemove-stepsize' => {
> description => "Wipe step size in MiB."
> . " It will be capped to the maximum supported by the storage.",
> @@ -453,6 +465,7 @@ sub options {
> shared => { optional => 1 },
> disable => { optional => 1 },
> saferemove => { optional => 1 },
> + issue_blkdiscard => { optional => 1 },
I think for new fields we use - instead of _?
> 'saferemove-stepsize' => { optional => 1 },
> saferemove_throughput => { optional => 1 },
> content => { optional => 1 },
next prev parent reply other threads:[~2026-03-23 10:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-23 10:14 [PATCH manager/storage 0/2] fix #7339: lvmthick: add option to free storage for " Lukas Sichert
2026-03-23 10:14 ` [PATCH storage 1/2] fix #7339: lvmthick: add worker to free space of to be " Lukas Sichert
2026-03-23 10:31 ` Michael Köppl [this message]
2026-03-23 10:57 ` Maximiliano Sandoval
2026-03-23 12:50 ` Michael Köppl
2026-03-23 10:14 ` [PATCH manager 2/2] fix #7339: lvmthick: ui: add UI fields for option to free storage Lukas Sichert
2026-03-23 10:52 ` Maximiliano Sandoval
2026-03-23 14:01 ` Fabian Grünbichler
2026-03-23 12:39 ` Michael Köppl
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=DHA3CMV4VBMI.14WCK95P7U5AW@proxmox.com \
--to=m.koeppl@proxmox.com \
--cc=l.sichert@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.