Skip to content

Commit

Permalink
Merge pull request #20 from deckhouse/disable-root-reservation
Browse files Browse the repository at this point in the history
Disable root reservation for pvc
  • Loading branch information
RomanenkoDenys authored Jun 24, 2024
2 parents d7c17ce + f1458c9 commit 112eaff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion driver/mounter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 112eaff

Please # to comment.