From e831e3d0c2c4c4814dc846fc48e85c6c96763946 Mon Sep 17 00:00:00 2001 From: David Scott Date: Tue, 4 Aug 2015 18:12:34 +0100 Subject: [PATCH] Add an optional Volume.uuid For storage systems which have a pre-existing notion of a UUID/GUID, allow the Volume.stat to return it (which in turn can be used by higher-level tools like xapi). Note that a UUID/GUID is entirely optional. Signed-off-by: David Scott --- generator/src/control.ml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/generator/src/control.ml b/generator/src/control.ml index 185c6a8e..52cf57a7 100644 --- a/generator/src/control.ml +++ b/generator/src/control.ml @@ -31,7 +31,12 @@ let api = "within the enclosing Storage Repository (SR). A typical value would"; "be a filename or an LVM volume name." ]), - [ "name", Basic String, String.concat " " [ + [ "uuid", Option (Basic String), String.concat " " [ + "A uuid (or guid) for the volume, if one is available."; + "If a storage system has a built-in notion of a guid, then it"; + "will be returned here."; + ]; + "name", Basic String, String.concat " " [ "Short, human-readable label for the volume. Names are commonly used by"; "when displaying short lists of volumes."; ];