fsSize() linux parsing optimization
This commit is contained in:
parent
43a673c331
commit
f3b8a4ad36
@ -50,8 +50,12 @@ function fsSize(callback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isLinuxTmpFs(fs) {
|
function isLinuxTmpFs(fs) {
|
||||||
const linuxTmpFileSystems = ['rootfs', 'unionfs', 'squashfs', 'cramfs', 'initrd', 'initramfs', 'devtmpfs', 'tmpfs', 'udev', 'devfs', 'specfs', 'type'];
|
const linuxTmpFileSystems = ['rootfs', 'unionfs', 'squashfs', 'cramfs', 'initrd', 'initramfs', 'devtmpfs', 'tmpfs', 'udev', 'devfs', 'specfs', 'type', 'appimaged', 'fuse.'];
|
||||||
return (linuxTmpFileSystems.includes(fs.toLowerCase()));
|
let result = false;
|
||||||
|
linuxTmpFileSystems.forEach(linuxFs => {
|
||||||
|
if (fs.toLowerCase().indexOf(linuxFs) >= 0) result = true;
|
||||||
|
});
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
function filterLines(stdout) {
|
function filterLines(stdout) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user