mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-11-15 06:23:41 +08:00
fix: Lower spare disk space (#1061)
Reduced spare disk space threshold from 2GB to 512MB.
This commit is contained in:
@@ -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 ))
|
||||
|
||||
Reference in New Issue
Block a user