Merge 58fe4d7fbd into 8193b689ed
This commit is contained in:
commit
921681af1f
|
|
@ -1501,6 +1501,13 @@ class CsiBaseDriver {
|
|||
case "ext3":
|
||||
case "ext4":
|
||||
case "ext4dev":
|
||||
/**
|
||||
* Skip the automatic block‐discard (TRIM) phase so mkfs doesn’t
|
||||
* wait on the storage backend to zero/free every block. On many
|
||||
* iSCSI or thin‐provisioned volumes the discard step can stall
|
||||
* mkfs for minutes—`-E nodiscard` makes the format finish immediately.
|
||||
*/
|
||||
formatOptions.unshift("-E", "nodiscard");
|
||||
// disable reserved blocks in this scenario
|
||||
formatOptions.unshift("-m", "0");
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue