add note on confusing naming

This commit is contained in:
Girish Ramakrishnan
2025-10-15 11:59:35 +02:00
parent 41c00eda74
commit d3b4c2f394
+1
View File
@@ -326,6 +326,7 @@ async function getBlockDevices() {
const info = safe.JSON.parse(output);
if (!info) throw new BoxError(BoxError.INTERNAL_ERROR, `failed to parse lsblk: ${safe.error.message}`);
// despite the function and variable names, this is the partitions and not the block devices!
const devices = info.blockdevices.filter(d => d.fstype === 'ext4' || d.fstype === 'xfs');
const result = [];