From dfcae2f760bcda8caafbaec1596c2b36dcb6964f Mon Sep 17 00:00:00 2001 From: Brooklyn Dewolf Date: Thu, 23 May 2024 10:15:11 +0200 Subject: [PATCH] Add lvm2 version check to pass the --fs flag along Signed-off-by: Brooklyn Dewolf --- lib/vdsm/storage/lvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vdsm/storage/lvm.py b/lib/vdsm/storage/lvm.py index b8c3122ef..35933a580 100644 --- a/lib/vdsm/storage/lvm.py +++ b/lib/vdsm/storage/lvm.py @@ -1799,7 +1799,7 @@ def reduceLV(vgName, lvName, size_mb, force=False): cmd += ("--force",) cmd += ("--size", "%sm" % (size_mb,), "%s/%s" % (vgName, lvName)) if lvm_version >= (2, 3, 17): - cmd += ("--fs", "ignore",) + cmd += ("--fs", "ignore") try: _lvminfo.run_command(cmd, devices=_lvminfo._getVGDevs((vgName,)))