mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-11-01 23:44:58 +08:00
fix: Lower spare disk space (#1061)
Reduced spare disk space threshold from 2GB to 512MB.
This commit is contained in:
parent
6281205912
commit
c70e12f0a2
@ -434,7 +434,7 @@ addDisk () {
|
||||
|
||||
if [[ "${DISK_SPACE,,}" == "max" ]]; then
|
||||
|
||||
local SPARE=2147483648
|
||||
local SPARE=536870912
|
||||
SPACE=$(df --output=avail -B 1 "$DIR" | tail -n 1)
|
||||
(( SPACE < SPARE )) && SPACE="$SPARE" || SPACE=$((SPACE-SPARE))
|
||||
GB=$(( SPACE/1073741824 ))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user