summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-07-01 11:52:19 +0300
committerLars Wirzenius <liw@liw.fi>2023-07-01 11:52:19 +0300
commit93d7ff9f57337f315b394bba11259087cd6314da (patch)
treed0a694fb8661835fee86cfd289c8696024f433de
parenta59e8323f1a4e149cb2600952e146ff98d74cf38 (diff)
downloadvmdb2-93d7ff9f57337f315b394bba11259087cd6314da.tar.gz
feat: make zerofree be quiet
We ran zerofree with -v, which outputs progress percentages, and that's not actually useful. Drop the -v for a cleaner log. Sponsored-by: author
-rw-r--r--vmdb/plugins/mount_plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/vmdb/plugins/mount_plugin.py b/vmdb/plugins/mount_plugin.py
index b18c009..699ffc5 100644
--- a/vmdb/plugins/mount_plugin.py
+++ b/vmdb/plugins/mount_plugin.py
@@ -41,9 +41,9 @@ class MountStepRunner(vmdb.StepRunnerInterface):
run_zerofree = values.get("zerofree", True)
if run_zerofree:
fstype = state.tags.get_fstype(tag)
- if fstype.startswith('ext'):
+ if fstype.startswith("ext"):
dev = state.tags.get_dev(tag)
- vmdb.runcmd(["zerofree", "-v", dev])
+ vmdb.runcmd(["zerofree", dev])
else:
logging.info(f"not running zerofree on {tag} with {fstype} filesystem")