[pve-devel] [PATCH pve-storage v2 2/3] lvm: create: use multiple lines for lvcreate commandline definition

Friedrich Weber f.weber at proxmox.com
Fri Mar 7 10:52:44 CET 2025


Makes the definition more amenable for future additions.

No functional change intended.

Signed-off-by: Friedrich Weber <f.weber at proxmox.com>
---

Notes:
    new in v2

 src/PVE/Storage/LVMPlugin.pm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/PVE/Storage/LVMPlugin.pm b/src/PVE/Storage/LVMPlugin.pm
index 38f7fa1..bb54c71 100644
--- a/src/PVE/Storage/LVMPlugin.pm
+++ b/src/PVE/Storage/LVMPlugin.pm
@@ -344,7 +344,14 @@ sub lvcreate {
 	$size .= "k"; # default to kilobytes
     }
 
-    my $cmd = ['/sbin/lvcreate', '-aly', '-Wy', '--yes', '--size', $size, '--name', $name];
+    my $cmd = [
+	'/sbin/lvcreate',
+	'-aly',
+	'-Wy',
+	'--yes',
+	'--size', $size,
+	'--name', $name,
+    ];
     for my $tag (@$tags) {
 	push @$cmd, '--addtag', $tag;
     }
-- 
2.39.5





More information about the pve-devel mailing list