From f1458c98d57408c6a2a54075a3021a980fc84942 Mon Sep 17 00:00:00 2001 From: Yan Zarytovsky Date: Mon, 24 Jun 2024 12:57:26 +0300 Subject: [PATCH] Disable root reservation for pvc Signed-off-by: Yan Zarytovsky --- driver/mounter.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/driver/mounter.go b/driver/mounter.go index 2f13707..81aab47 100644 --- a/driver/mounter.go +++ b/driver/mounter.go @@ -115,7 +115,11 @@ func (m *mounter) Format(source, fsType string) error { mkfsArgs = append(mkfsArgs, source) if fsType == "ext4" || fsType == "ext3" { - mkfsArgs = []string{"-F", source} + mkfsArgs = []string{ + "-F", // Force flag + "-m0", // Zero blocks reserved for super-user + source, + } } m.log.WithFields(logrus.Fields{