rename disks to filesystems
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
exports = module.exports = {
|
||||
disks,
|
||||
filesystems,
|
||||
file,
|
||||
prettyBytes
|
||||
};
|
||||
@@ -36,10 +36,10 @@ function parseLine(line) {
|
||||
};
|
||||
}
|
||||
|
||||
async function disks() {
|
||||
async function filesystems() {
|
||||
const [error, output] = await safe(shell.spawn('df', ['-B1', '--output=source,fstype,size,used,avail,pcent,target'], { encoding: 'utf8', timeout: 5000 }));
|
||||
if (error) {
|
||||
debug(`disks: df command failed. error: ${error}\n stdout: ${error.stdout}\n stderr: ${error.stderr}`);
|
||||
debug(`filesystems: df command failed. error: ${error}\n stdout: ${error.stdout}\n stderr: ${error.stderr}`);
|
||||
throw new BoxError(BoxError.FS_ERROR, `Error running df: ${error.message}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user