|
|
|
|
|
|
|
|
|
|
xen-api
[Xen-API] [PATCH] Don't copy sm-config when cloning/copying VDIs
# HG changeset patch
# User Jon Ludlam <Jonathan.Ludlam@xxxxxxxxxxxxx>
# Date 1285345948 -3600
# Node ID b5f83ca52e4bfd898972edb1086e850d37a0a7aa
# Parent c9096a7ecb48a10462c280b8b672e8bf04bbd3e1
The storage backends use sm-config for various bits of per-vdi info. We
shouldn't copy that when cloning/copying a VDI.
Signed-off-by: Jon Ludlam <Jonathan.Ludlam@xxxxxxxxxxxxx>
diff -r c9096a7ecb48 -r b5f83ca52e4b ocaml/xapi/xapi_vdi.ml
--- a/ocaml/xapi/xapi_vdi.ml
+++ b/ocaml/xapi/xapi_vdi.ml
@@ -447,7 +447,7 @@
~read_only:a.Db_actions.vDI_read_only
~other_config:a.Db_actions.vDI_other_config
~xenstore_data:a.Db_actions.vDI_xenstore_data
- ~sm_config:a.Db_actions.vDI_sm_config ~tags:[]
+ ~sm_config:[] ~tags:[]
in
(try
(* Remove the vdi_clone from the SR's current operations, this prevents
the whole
@@ -488,7 +488,7 @@
~read_only:src.API.vDI_read_only
~other_config:src.API.vDI_other_config
~xenstore_data:src.API.vDI_xenstore_data
- ~sm_config:src.API.vDI_sm_config ~tags:[] in
+ ~sm_config:[] ~tags:[] in
if src.API.vDI_on_boot = `reset then begin
try Client.VDI.set_on_boot ~rpc ~session_id ~self:result
~value:(`reset) with _ -> ()
end;
xen-api2.hg.patch
Description: Text Data
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-API] [PATCH] Don't copy sm-config when cloning/copying VDIs,
Jon Ludlam <=
|
|
|
|
|