From 4a1fc3ef1671c9b8c3cf63cbb98d01f260799416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edwin=20T=C3=B6r=C3=B6k?= Date: Mon, 26 Feb 2018 16:23:42 +0000 Subject: [PATCH] CP-26340: SR.probe changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SMAPIv3 returns a list of configurations: * suitable for SR.attach together with sr_info * suitable for SR.create * suitable as further input to SR.probe (recursively) SMAPIv1 is unaffected, it always returns a `Raw` result. Signed-off-by: Edwin Török --- storage/storage_interface.ml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/storage/storage_interface.ml b/storage/storage_interface.ml index 213974cf..4382bf58 100644 --- a/storage/storage_interface.ml +++ b/storage/storage_interface.ml @@ -118,9 +118,11 @@ type dp_stat_t = { let string_of_dp_stat_t (x: dp_stat_t) = Jsonrpc.to_string (rpc_of_dp_stat_t x) +type device_config = (string * string) list type probe = { - srs: (string * sr_info) list; (* SRs we found *) - uris: string list; (* other uris we found which could be probed recursively *) + attachable: (device_config * sr_info) list; (* Attachable SRs we found *) + creatable: device_config list; (* Complete configurations that can be used to create an SR. *) + incomplete: device_config list; (* other configurations we found which could be probed recursively *) } type probe_result =