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