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) { if (_linux) {
try { 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) execSync('cat /proc/mounts 2>/dev/null', util.execOptsLinux)
.toString() .toString()
.split('\n') .split('\n')
@ -169,7 +169,7 @@ function fsSize(drive, callback) {
} }
if (_freebsd || _openbsd || _netbsd) { if (_freebsd || _openbsd || _netbsd) {
try { try {
cmd = 'df -lkPT'; cmd = 'df -kPT';
execSync('mount') execSync('mount')
.toString() .toString()
.split('\n') .split('\n')