system: rename DISK_TYPES to FS_TYPES

This commit is contained in:
Girish Ramakrishnan
2024-11-30 12:00:36 +01:00
parent 56f6519b3e
commit 40febc8ef2

View File

@@ -97,19 +97,19 @@ async function getFilesystems() {
const filesystems = {}; // by file system
let rootDisk;
const DISK_TYPES = [ 'ext4', 'xfs', 'cifs', 'nfs', 'fuse.sshfs' ]; // we don't show size of contents in untracked disk types
const FS_TYPES = [ 'ext4', 'xfs', 'cifs', 'nfs', 'fuse.sshfs' ]; // we don't show size of contents in untracked disk types
for (const disk of dfEntries) {
if (!DISK_TYPES.includes(disk.type)) continue;
if (disk.mountpoint === '/') rootDisk = disk;
filesystems[disk.filesystem] = {
filesystem: disk.filesystem,
type: disk.type,
size: disk.size,
used: disk.used,
available: disk.available,
capacity: disk.capacity,
mountpoint: disk.mountpoint,
for (const dfEntry of dfEntries) {
if (!FS_TYPES.includes(dfEntry.type)) continue;
if (dfEntry.mountpoint === '/') rootDisk = dfEntry;
filesystems[dfEntry.filesystem] = {
filesystem: dfEntry.filesystem,
type: dfEntry.type,
size: dfEntry.size,
used: dfEntry.used,
available: dfEntry.available,
capacity: dfEntry.capacity,
mountpoint: dfEntry.mountpoint,
contents: [] // filled below
};
}