You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
301 B
JavaScript
14 lines
301 B
JavaScript
"use strict";
|
|
|
|
const Promise = require("bluebird");
|
|
|
|
const nvmeCli = require("../../../packages/exec-nvme-cli");
|
|
|
|
module.exports = function () {
|
|
return function (controllerPaths) {
|
|
return Promise.map(controllerPaths, (path) => {
|
|
return nvmeCli.listNamespaces({ devicePath: path });
|
|
});
|
|
};
|
|
};
|