Skip to content

Commit 19ad942

Browse files
author
David Scott
committed
CA-180826: SR.stat should take the attached URI
We call `SR.stat` on already-attached SRs, so should provide the attached URI. For example if an SR is created at iscsi://target/iqn/disk the `SR.attach` will return a local path like file:///var/run/sr-mount/foo We then call `SR.stat` with `file:///var/run/sr-mount/foo`. This makes it easy to query the SR attributes such as - free space - name etc Signed-off-by: David Scott <[email protected]>
1 parent 91440a1 commit 19ad942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ let process root_dir name x =
409409
(* Stat the SR to look for datasources *)
410410
let args = Storage.Volume.Types.SR.Stat.In.make
411411
args.Args.SR.Attach.dbg
412-
uri in
412+
attach_response (* SR.stat should take the attached URI *) in
413413
let args = Storage.Volume.Types.SR.Stat.In.rpc_of_t args in
414414
fork_exec_rpc root_dir (script root_dir name `Volume "SR.stat") args Storage.Volume.Types.SR.Stat.Out.t_of_rpc
415415
>>= fun stat ->

0 commit comments

Comments
 (0)