initial xfs support
This commit is contained in:
@@ -69,7 +69,7 @@ async function getDisks() {
|
||||
if (error) throw new BoxError(BoxError.FS_ERROR, error);
|
||||
|
||||
// filter by ext4 and then sort to make sure root disk is first
|
||||
const ext4Disks = allDisks.filter((r) => r.type === 'ext4').sort((a, b) => a.mountpoint.localeCompare(b.mountpoint));
|
||||
const ext4Disks = allDisks.filter((r) => r.type === 'ext4' || r.type === 'xfs').sort((a, b) => a.mountpoint.localeCompare(b.mountpoint));
|
||||
|
||||
const diskInfos = [];
|
||||
for (const p of [ paths.BOX_DATA_DIR, paths.MAIL_DATA_DIR, paths.PLATFORM_DATA_DIR, paths.APPS_DATA_DIR, info.DockerRootDir ]) {
|
||||
@@ -81,7 +81,7 @@ async function getDisks() {
|
||||
const backupsFilesystem = await getBackupsFilesystem();
|
||||
|
||||
const result = {
|
||||
disks: ext4Disks, // root disk is first. { filesystem, type, size, used, avialable, capacity, mountpoint }
|
||||
disks: ext4Disks, // root disk is first. { filesystem, type, size, used, available, capacity, mountpoint }
|
||||
boxDataDisk: diskInfos[0].filesystem,
|
||||
mailDataDisk: diskInfos[1].filesystem,
|
||||
platformDataDisk: diskInfos[2].filesystem,
|
||||
|
||||
Reference in New Issue
Block a user