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.
cvm/src/api/types/lvm/physical-volume.js

24 lines
548 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",
status: "status",
isExported: "isExported",
isMissing: "isMissing",
volumeGroup: (volume) => types.LVMVolumeGroup({ name: volume.volumeGroup })
}
}
});
};