Skip to content

Commit

Permalink
Make probe return value match the one in SMAPIv3
Browse files Browse the repository at this point in the history
Signed-off-by: Gabor Igloi <gabor.igloi@citrix.com>
  • Loading branch information
gaborigloi committed Mar 1, 2018
1 parent 4a1fc3e commit 91180d7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions storage/storage_interface.ml
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,15 @@ 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 = {
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 *)
configuration: (string * string) list;
complete: bool;
sr: sr_info option;
extra_info: (string * string) list;
}

type probe_result =
| Raw of string (* SMAPIv1 adapters return arbitrary data *)
| Probe of probe
| Probe of probe list

module Mirror = struct
type id = string
Expand Down

0 comments on commit 91180d7

Please sign in to comment.