mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-09-03 04:44: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/UNKNOWN //}"
|
||||||
FS="${FS/ext2\/ext3/ext4}"
|
FS="${FS/ext2\/ext3/ext4}"
|
||||||
FS=$(echo "$FS" | sed 's/[)(]//g')
|
FS=$(echo "$FS" | sed 's/[)(]//g')
|
||||||
SPACE=$(df --outpu
|
SPACE=$(df --output=avail -B 1 "$STORAGE" | tail -n 1)
|
||||||
t=avail -B 1 "$STORAGE" | tail -n 1)
|
|
||||||
SPACE_GB=$(formatBytes "$SPACE" "down")
|
SPACE_GB=$(formatBytes "$SPACE" "down")
|
||||||
AVAIL_MEM=$(formatBytes "$RAM_AVAIL" "down")
|
AVAIL_MEM=$(formatBytes "$RAM_AVAIL" "down")
|
||||||
TOTAL_MEM=$(formatBytes "$RAM_TOTAL" "up")
|
TOTAL_MEM=$(formatBytes "$RAM_TOTAL" "up")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user