From d52f8ffbe035281813753537aaed7b1e2488856e Mon Sep 17 00:00:00 2001 From: Mehran Kholdi Date: Sat, 26 Jun 2021 03:03:54 +0430 Subject: [PATCH] ext4: Do not reserve free space for root user upon creation PVCs are data volumes most of the times, and reserving space for system tasks is probably unnecessary. The user can still modify a specific PVC's reserved blocks through the `tune2fs` command. --- declarative.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/declarative.py b/declarative.py index 1425417..f91372e 100644 --- a/declarative.py +++ b/declarative.py @@ -61,7 +61,7 @@ def current_fs(device): def be_formatted(dev, fs): def init_fs(device): if fs == "ext4": - run(f"mkfs.ext4 {device}") + run(f"mkfs.ext4 -m 0 {device}") elif fs == "btrfs": run(f"mkfs.btrfs {device}") else: