daemon: Reimplement list_dm_devices API in OCaml.

Simple refactoring.  The only annoying point is requiring an extra
module because of OCaml module dependency restrictions.
This commit is contained in:
Richard W.M. Jones
2020-03-30 15:17:54 +01:00
parent 41cbc89330
commit 79f3d451a8
5 changed files with 44 additions and 76 deletions

View File

@@ -6180,6 +6180,7 @@ parameter." };
{ defaults with
name = "list_dm_devices"; added = (1, 11, 15);
style = RStringList (RDevice, "devices"), [], [];
impl = OCaml "Lvm_dm.list_dm_devices";
shortdesc = "list device mapper devices";
longdesc = "\
List all device mapper devices.