mirror of
https://github.com/democratic-csi/democratic-csi.git
synced 2026-10-18 10:28:35 +02:00
default ext volumes to use 0 reserved space
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
@@ -1309,6 +1309,16 @@ class CsiBaseDriver {
|
||||
if (!Array.isArray(formatOptions)) {
|
||||
formatOptions = [];
|
||||
}
|
||||
|
||||
switch (fs_type) {
|
||||
case "ext3":
|
||||
case "ext4":
|
||||
case "ext4dev":
|
||||
// disable reserved blocks in this scenario
|
||||
formatOptions.unshift("-m", "0");
|
||||
break;
|
||||
}
|
||||
|
||||
await filesystem.formatDevice(device, fs_type, formatOptions);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user