Skip to content

Commit

Permalink
Add lvm2 version check to pass the --fs flag along
Browse files Browse the repository at this point in the history
Signed-off-by: Brooklyn Dewolf <[email protected]>
  • Loading branch information
BrooklynDewolf committed May 23, 2024
1 parent be75041 commit dfcae2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vdsm/storage/lvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,)))
Expand Down

0 comments on commit dfcae2f

Please sign in to comment.