New API: luks_uuid

Return the UUID of a LUKS device.
This commit is contained in:
Pino Toscano
2019-11-29 11:48:59 +01:00
parent 58ab39ba34
commit 206ce8bbf1
4 changed files with 35 additions and 1 deletions

View File

@@ -9728,4 +9728,12 @@ it is useful when you have added a new device or deleted an
existing device (such as when the C<guestfs_luks_open> API
is used)." };
{ defaults with
name = "luks_uuid"; added = (1, 41, 9);
style = RString (RPlainString, "uuid"), [String (Device, "device")], [];
optional = Some "luks";
shortdesc = "get the UUID of a LUKS device";
longdesc = "\
This returns the UUID of the LUKS device C<device>." };
]

View File

@@ -514,6 +514,7 @@ let proc_nr = [
504, "part_get_gpt_attributes";
505, "f2fs_expand";
506, "lvm_scan";
507, "luks_uuid";
]
(* End of list. If adding a new entry, add it at the end of the list