Browse files

smapiv2: add SR.create

  • Loading branch information...
1 parent c2f40db commit 959d313b6a0f5242d3a0b45504e74167d4a0b56e David Scott committed May 22, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 smapiv2.ml
View
16 smapiv2.ml
@@ -330,6 +330,22 @@ let api =
description = "Operations which act on Storage Repositories";
type_decls = [];
methods = [
+ {
+ Method.name = "create";
+ description = "[create task sr device_config physical_size]: creates a fresh SR";
+ inputs = [
+ sr;
+ { Arg.name = "device_config";
+ ty = Type.(Dict(String, Basic String));
+ description = "Host-local SR configuration (e.g. address information)";
+ };
+ { Arg.name = "physical_size";
+ ty = Type.(Basic Int64);
+ description = "Requested maximum size of the SR (bytes)"
+ }
+ ];
+ outputs = []
+ };
{
Method.name = "attach";
description = "[attach task sr]: attaches the SR";

0 comments on commit 959d313

Please sign in to comment.