Commit 950911b
committed
Avoid round-up of small volume capacities
For use cases where the volume capacity override option cannot
be used, if we round small capacities to the next 1GB, we might
use inadequate values for proper origin and total storage quota
control. This is more critical for smaller capacities.
Note: It is arguable if we should be rounding up at all, because
that will lead to the use of wrong quotas. Rounding down would
seem more sensible to ensure we won't attempt to use more space
than the one available. For now, adjust for the small volume
sizes1 parent 38067c9 commit 950911b
1 file changed
Lines changed: 8 additions & 2 deletions
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
393 | 396 | | |
394 | 397 | | |
395 | 398 | | |
| |||
551 | 554 | | |
552 | 555 | | |
553 | 556 | | |
554 | | - | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
555 | 561 | | |
556 | 562 | | |
557 | 563 | | |
| |||
0 commit comments