ia64/xen-unstable

changeset 14739:4de1e743a5a8

Remove docs and bindings for unimplemented VDI.resize and VDI.snapshot.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Wed Apr 04 15:00:57 2007 +0100 (2007-04-04)
parents 610dcfb3c164
children 5dcb272de7e4
files docs/xen-api/xenapi-datamodel.tex tools/libxen/include/xen_vdi.h tools/libxen/src/xen_vdi.c tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/docs/xen-api/xenapi-datamodel.tex	Wed Apr 04 14:53:52 2007 +0100
     1.2 +++ b/docs/xen-api/xenapi-datamodel.tex	Wed Apr 04 15:00:57 2007 +0100
     1.3 @@ -9748,73 +9748,6 @@ Quals & Field & Type & Description \\
     1.4  \hline
     1.5  \end{longtable}
     1.6  \subsection{RPCs associated with class: VDI}
     1.7 -\subsubsection{RPC name:~snapshot}
     1.8 -
     1.9 -{\bf Overview:} 
    1.10 -Take an exact copy of the VDI; the snapshot lives in the same Storage
    1.11 -Repository as its parent.
    1.12 -
    1.13 - \noindent {\bf Signature:} 
    1.14 -\begin{verbatim} (VDI ref) snapshot (session_id s, VDI ref vdi)\end{verbatim}
    1.15 -
    1.16 -
    1.17 -\noindent{\bf Arguments:}
    1.18 -
    1.19 - 
    1.20 -\vspace{0.3cm}
    1.21 -\begin{tabular}{|c|c|p{7cm}|}
    1.22 - \hline
    1.23 -{\bf type} & {\bf name} & {\bf description} \\ \hline
    1.24 -{\tt VDI ref } & vdi & The VDI to snapshot \\ \hline 
    1.25 -
    1.26 -\end{tabular}
    1.27 -
    1.28 -\vspace{0.3cm}
    1.29 -
    1.30 - \noindent {\bf Return Type:} 
    1.31 -{\tt 
    1.32 -VDI ref
    1.33 -}
    1.34 -
    1.35 -
    1.36 -The ID of the newly created VDI.
    1.37 -\vspace{0.3cm}
    1.38 -\vspace{0.3cm}
    1.39 -\vspace{0.3cm}
    1.40 -\subsubsection{RPC name:~resize}
    1.41 -
    1.42 -{\bf Overview:} 
    1.43 -Resize the vdi to the size.
    1.44 -
    1.45 - \noindent {\bf Signature:} 
    1.46 -\begin{verbatim} void resize (session_id s, VDI ref vdi, int size)\end{verbatim}
    1.47 -
    1.48 -
    1.49 -\noindent{\bf Arguments:}
    1.50 -
    1.51 - 
    1.52 -\vspace{0.3cm}
    1.53 -\begin{tabular}{|c|c|p{7cm}|}
    1.54 - \hline
    1.55 -{\bf type} & {\bf name} & {\bf description} \\ \hline
    1.56 -{\tt VDI ref } & vdi & The VDI to resize \\ \hline 
    1.57 -
    1.58 -{\tt int } & size & The new size of the VDI \\ \hline 
    1.59 -
    1.60 -\end{tabular}
    1.61 -
    1.62 -\vspace{0.3cm}
    1.63 -
    1.64 - \noindent {\bf Return Type:} 
    1.65 -{\tt 
    1.66 -void
    1.67 -}
    1.68 -
    1.69 -
    1.70 -
    1.71 -\vspace{0.3cm}
    1.72 -\vspace{0.3cm}
    1.73 -\vspace{0.3cm}
    1.74  \subsubsection{RPC name:~get\_all}
    1.75  
    1.76  {\bf Overview:} 
     2.1 --- a/tools/libxen/include/xen_vdi.h	Wed Apr 04 14:53:52 2007 +0100
     2.2 +++ b/tools/libxen/include/xen_vdi.h	Wed Apr 04 15:00:57 2007 +0100
     2.3 @@ -338,21 +338,6 @@ xen_vdi_remove_from_other_config(xen_ses
     2.4  
     2.5  
     2.6  /**
     2.7 - * Take an exact copy of the VDI; the snapshot lives in the same
     2.8 - * Storage Repository as its parent.
     2.9 - */
    2.10 -extern bool
    2.11 -xen_vdi_snapshot(xen_session *session, xen_vdi *result, xen_vdi vdi);
    2.12 -
    2.13 -
    2.14 -/**
    2.15 - * Resize the vdi to the size.
    2.16 - */
    2.17 -extern bool
    2.18 -xen_vdi_resize(xen_session *session, xen_vdi vdi, int64_t size);
    2.19 -
    2.20 -
    2.21 -/**
    2.22   * Return a list of all the VDIs known to the system.
    2.23   */
    2.24  extern bool
     3.1 --- a/tools/libxen/src/xen_vdi.c	Wed Apr 04 14:53:52 2007 +0100
     3.2 +++ b/tools/libxen/src/xen_vdi.c	Wed Apr 04 15:00:57 2007 +0100
     3.3 @@ -508,39 +508,6 @@ xen_vdi_remove_from_other_config(xen_ses
     3.4  
     3.5  
     3.6  bool
     3.7 -xen_vdi_snapshot(xen_session *session, xen_vdi *result, xen_vdi vdi)
     3.8 -{
     3.9 -    abstract_value param_values[] =
    3.10 -        {
    3.11 -            { .type = &abstract_type_string,
    3.12 -              .u.string_val = vdi }
    3.13 -        };
    3.14 -
    3.15 -    abstract_type result_type = abstract_type_string;
    3.16 -
    3.17 -    *result = NULL;
    3.18 -    XEN_CALL_("VDI.snapshot");
    3.19 -    return session->ok;
    3.20 -}
    3.21 -
    3.22 -
    3.23 -bool
    3.24 -xen_vdi_resize(xen_session *session, xen_vdi vdi, int64_t size)
    3.25 -{
    3.26 -    abstract_value param_values[] =
    3.27 -        {
    3.28 -            { .type = &abstract_type_string,
    3.29 -              .u.string_val = vdi },
    3.30 -            { .type = &abstract_type_int,
    3.31 -              .u.int_val = size }
    3.32 -        };
    3.33 -
    3.34 -    xen_call_(session, "VDI.resize", param_values, 2, NULL, NULL);
    3.35 -    return session->ok;
    3.36 -}
    3.37 -
    3.38 -
    3.39 -bool
    3.40  xen_vdi_get_all(xen_session *session, struct xen_vdi_set **result)
    3.41  {
    3.42  
     4.1 --- a/tools/python/xen/xend/XendAPI.py	Wed Apr 04 14:53:52 2007 +0100
     4.2 +++ b/tools/python/xen/xend/XendAPI.py	Wed Apr 04 15:00:57 2007 +0100
     4.3 @@ -2187,7 +2187,7 @@ class XendAPI(object):
     4.4                     'other_config']
     4.5      VDI_attr_inst = VDI_attr_ro + VDI_attr_rw
     4.6  
     4.7 -    VDI_methods = [('snapshot', 'VDI'), ('destroy', None)]
     4.8 +    VDI_methods = [('destroy', None)]
     4.9      VDI_funcs = [('create', 'VDI'),
    4.10                    ('get_by_name_label', 'Set(VDI)')]
    4.11  
    4.12 @@ -2251,8 +2251,6 @@ class XendAPI(object):
    4.13          return xen_api_success_void()
    4.14  
    4.15      # Object Methods
    4.16 -    def VDI_snapshot(self, session, vdi_ref):
    4.17 -        return xen_api_todo()
    4.18      
    4.19      def VDI_destroy(self, session, vdi_ref):
    4.20          sr = XendNode.instance().get_sr_containing_vdi(vdi_ref)