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.
26 lines
616 B
JavaScript
26 lines
616 B
JavaScript
"use strict";
|
|
|
|
const dlayerSource = require("../../../packages/dlayer-source");
|
|
|
|
const types = require("../");
|
|
|
|
module.exports = function LVMPhysicalVolume ({ path }) {
|
|
return dlayerSource.withSources({
|
|
$sources: {
|
|
lvmPhysicalVolumes: {
|
|
[dlayerSource.ID]: path,
|
|
path: "path",
|
|
format: "format",
|
|
totalSpace: "totalSpace",
|
|
freeSpace: "freeSpace",
|
|
isExported: "isExported",
|
|
isMissing: "isMissing",
|
|
isAllocatable: "isAllocatable",
|
|
isDuplicate: "isDuplicate",
|
|
isUsed: "isUsed",
|
|
volumeGroup: (volume) => types.LVMVolumeGroup({ name: volume.volumeGroup })
|
|
}
|
|
}
|
|
});
|
|
};
|