Skip to content

Commit

Permalink
CP-26340: SR.probe changes
Browse files Browse the repository at this point in the history
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 <edvin.torok@citrix.com>
  • Loading branch information
edwintorok committed Feb 26, 2018
1 parent 236beab commit 4a1fc3e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions storage/storage_interface.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 4a1fc3e

Please sign in to comment.