Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Github action on xapi-project/xen-api committed Sep 9, 2024
1 parent b5b154b commit 3dfd664
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions source/includes/volume.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -2513,7 +2513,7 @@ class Volume_myimplementation(Volume_skeleton):
length | in | int | The length of the extent for which changed blocks should be computed
changed_blocks | out | changed_blocks | The changed blocks between two volumes in the specified extent
## Method: `compose`
\[compose sr volume1 volume2\] layers the updates from \[volume2\] onto \[volume1\], modifying \[volume2\]. Implementations shall declare the VDI\_COMPOSE feature for this method to be supported.
\[compose sr child\_volume parent\_volume\] layers the updates from \[child\_volume\] onto \[parent\_volume\], modifying \[child\_volume\]. In the case of a delta file format this means updating the \[child\_volume\] to have a parent or backing object defined by \[parent\_volume\]. Implementations shall declare the VDI\_COMPOSE feature for this method to be supported. After a successful return it should be assumed that the \[parent\_volume\] is no longer valid. Calling SR.ls, will return the list of currently known, valid, volumes.

> Client
Expand Down Expand Up @@ -2579,9 +2579,15 @@ class Volume_myimplementation(Volume_skeleton):

def compose(self, dbg, sr, key, key2):
"""
[compose sr volume1 volume2] layers the updates from [volume2] onto
[volume1], modifying [volume2]. Implementations shall declare the
VDI_COMPOSE feature for this method to be supported.
[compose sr child_volume parent_volume] layers the updates from
[child_volume] onto [parent_volume], modifying [child_volume].
In the case of a delta file format this means updating the
[child_volume] to have a parent or backing object defined by
[parent_volume]. Implementations shall declare the VDI_COMPOSE
feature for this method to be supported. After a successful
return it should be assumed that the [parent_volume] is no
longer valid. Calling SR.ls, will return the list of currently
known, valid, volumes.
"""
# ...
```
Expand Down

0 comments on commit 3dfd664

Please sign in to comment.