mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-09-02 12:24:46 +08:00
feat: Check if storage folder is writeable (#1005)
This commit is contained in:
parent
a19bf2f066
commit
9aec5d20e3
@ -103,8 +103,7 @@ SYS="${SYS/-generic/}"
|
||||
FS="${FS/UNKNOWN //}"
|
||||
FS="${FS/ext2\/ext3/ext4}"
|
||||
FS=$(echo "$FS" | sed 's/[)(]//g')
|
||||
SPACE=$(df --outpu
|
||||
t=avail -B 1 "$STORAGE" | tail -n 1)
|
||||
SPACE=$(df --output=avail -B 1 "$STORAGE" | tail -n 1)
|
||||
SPACE_GB=$(formatBytes "$SPACE" "down")
|
||||
AVAIL_MEM=$(formatBytes "$RAM_AVAIL" "down")
|
||||
TOTAL_MEM=$(formatBytes "$RAM_TOTAL" "up")
|
||||
|
Loading…
x
Reference in New Issue
Block a user