[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Remove docs and bindings for unimplemented VDI.resize and VDI.snapshot.



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1175695257 -3600
# Node ID 4de1e743a5a83add228c18ef0cfcc87c040c7e80
# Parent  610dcfb3c1641c7f62bf546aa4eea781aaa7999c
Remove docs and bindings for unimplemented VDI.resize and VDI.snapshot.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 docs/xen-api/xenapi-datamodel.tex |   67 --------------------------------------
 tools/libxen/include/xen_vdi.h    |   15 --------
 tools/libxen/src/xen_vdi.c        |   33 ------------------
 tools/python/xen/xend/XendAPI.py  |    4 --
 4 files changed, 1 insertion(+), 118 deletions(-)

diff -r 610dcfb3c164 -r 4de1e743a5a8 docs/xen-api/xenapi-datamodel.tex
--- a/docs/xen-api/xenapi-datamodel.tex Wed Apr 04 14:53:52 2007 +0100
+++ b/docs/xen-api/xenapi-datamodel.tex Wed Apr 04 15:00:57 2007 +0100
@@ -9748,73 +9748,6 @@ Quals & Field & Type & Description \\
 \hline
 \end{longtable}
 \subsection{RPCs associated with class: VDI}
-\subsubsection{RPC name:~snapshot}
-
-{\bf Overview:} 
-Take an exact copy of the VDI; the snapshot lives in the same Storage
-Repository as its parent.
-
- \noindent {\bf Signature:} 
-\begin{verbatim} (VDI ref) snapshot (session_id s, VDI ref vdi)\end{verbatim}
-
-
-\noindent{\bf Arguments:}
-
- 
-\vspace{0.3cm}
-\begin{tabular}{|c|c|p{7cm}|}
- \hline
-{\bf type} & {\bf name} & {\bf description} \\ \hline
-{\tt VDI ref } & vdi & The VDI to snapshot \\ \hline 
-
-\end{tabular}
-
-\vspace{0.3cm}
-
- \noindent {\bf Return Type:} 
-{\tt 
-VDI ref
-}
-
-
-The ID of the newly created VDI.
-\vspace{0.3cm}
-\vspace{0.3cm}
-\vspace{0.3cm}
-\subsubsection{RPC name:~resize}
-
-{\bf Overview:} 
-Resize the vdi to the size.
-
- \noindent {\bf Signature:} 
-\begin{verbatim} void resize (session_id s, VDI ref vdi, int 
size)\end{verbatim}
-
-
-\noindent{\bf Arguments:}
-
- 
-\vspace{0.3cm}
-\begin{tabular}{|c|c|p{7cm}|}
- \hline
-{\bf type} & {\bf name} & {\bf description} \\ \hline
-{\tt VDI ref } & vdi & The VDI to resize \\ \hline 
-
-{\tt int } & size & The new size of the VDI \\ \hline 
-
-\end{tabular}
-
-\vspace{0.3cm}
-
- \noindent {\bf Return Type:} 
-{\tt 
-void
-}
-
-
-
-\vspace{0.3cm}
-\vspace{0.3cm}
-\vspace{0.3cm}
 \subsubsection{RPC name:~get\_all}
 
 {\bf Overview:} 
diff -r 610dcfb3c164 -r 4de1e743a5a8 tools/libxen/include/xen_vdi.h
--- a/tools/libxen/include/xen_vdi.h    Wed Apr 04 14:53:52 2007 +0100
+++ b/tools/libxen/include/xen_vdi.h    Wed Apr 04 15:00:57 2007 +0100
@@ -338,21 +338,6 @@ xen_vdi_remove_from_other_config(xen_ses
 
 
 /**
- * Take an exact copy of the VDI; the snapshot lives in the same
- * Storage Repository as its parent.
- */
-extern bool
-xen_vdi_snapshot(xen_session *session, xen_vdi *result, xen_vdi vdi);
-
-
-/**
- * Resize the vdi to the size.
- */
-extern bool
-xen_vdi_resize(xen_session *session, xen_vdi vdi, int64_t size);
-
-
-/**
  * Return a list of all the VDIs known to the system.
  */
 extern bool
diff -r 610dcfb3c164 -r 4de1e743a5a8 tools/libxen/src/xen_vdi.c
--- a/tools/libxen/src/xen_vdi.c        Wed Apr 04 14:53:52 2007 +0100
+++ b/tools/libxen/src/xen_vdi.c        Wed Apr 04 15:00:57 2007 +0100
@@ -508,39 +508,6 @@ xen_vdi_remove_from_other_config(xen_ses
 
 
 bool
-xen_vdi_snapshot(xen_session *session, xen_vdi *result, xen_vdi vdi)
-{
-    abstract_value param_values[] =
-        {
-            { .type = &abstract_type_string,
-              .u.string_val = vdi }
-        };
-
-    abstract_type result_type = abstract_type_string;
-
-    *result = NULL;
-    XEN_CALL_("VDI.snapshot");
-    return session->ok;
-}
-
-
-bool
-xen_vdi_resize(xen_session *session, xen_vdi vdi, int64_t size)
-{
-    abstract_value param_values[] =
-        {
-            { .type = &abstract_type_string,
-              .u.string_val = vdi },
-            { .type = &abstract_type_int,
-              .u.int_val = size }
-        };
-
-    xen_call_(session, "VDI.resize", param_values, 2, NULL, NULL);
-    return session->ok;
-}
-
-
-bool
 xen_vdi_get_all(xen_session *session, struct xen_vdi_set **result)
 {
 
diff -r 610dcfb3c164 -r 4de1e743a5a8 tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py  Wed Apr 04 14:53:52 2007 +0100
+++ b/tools/python/xen/xend/XendAPI.py  Wed Apr 04 15:00:57 2007 +0100
@@ -2187,7 +2187,7 @@ class XendAPI(object):
                    'other_config']
     VDI_attr_inst = VDI_attr_ro + VDI_attr_rw
 
-    VDI_methods = [('snapshot', 'VDI'), ('destroy', None)]
+    VDI_methods = [('destroy', None)]
     VDI_funcs = [('create', 'VDI'),
                   ('get_by_name_label', 'Set(VDI)')]
 
@@ -2251,8 +2251,6 @@ class XendAPI(object):
         return xen_api_success_void()
 
     # Object Methods
-    def VDI_snapshot(self, session, vdi_ref):
-        return xen_api_todo()
     
     def VDI_destroy(self, session, vdi_ref):
         sr = XendNode.instance().get_sr_containing_vdi(vdi_ref)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.