fsSize() add network drives (linux) wip

This commit is contained in:
Sebastian Hildebrandt 2026-01-04 12:08:12 +01:00
parent 636fa3feda
commit 7a70834dd4

View File

@ -150,7 +150,7 @@ function fsSize(drive, callback) {
}
if (_linux) {
try {
cmd = 'export LC_ALL=C; df -lkPTx squashfs; unset LC_ALL';
cmd = 'export LC_ALL=C; df -kPTx squashfs; unset LC_ALL';
execSync('cat /proc/mounts 2>/dev/null', util.execOptsLinux)
.toString()
.split('\n')
@ -169,7 +169,7 @@ function fsSize(drive, callback) {
}
if (_freebsd || _openbsd || _netbsd) {
try {
cmd = 'df -lkPT';
cmd = 'df -kPT';
execSync('mount')
.toString()
.split('\n')