Skip to content

Commit

Permalink
zfs-vol: test chain of VDI clones and their destuction (xfail)
Browse files Browse the repository at this point in the history
Cloning a VDI without a snapshot is just not implemented yet.

Signed-off-by: Yann Dirson <[email protected]>
  • Loading branch information
ydirson committed Mar 27, 2024
1 parent f4d187b commit 3183fc5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/storage/zfsvol/test_zfsvol_sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@ def create_vdi_and_snaps_chain(sr, vdi_label):
vdis.append(vdis[-1].clone())
return vdis

def create_vdi_chain(sr, vdi_label):
"Create a chain of alternating VDI snapshots and clones on first host."
vdis = [sr.create_vdi(vdi_label)]
for i in range(2):
vdis.append(vdis[-1].clone())
return vdis

def teardown_vdi_chain(sr, vdis, order):
"Destroy a list of VDIs in order specified by a sequence of VDIs indices."
for i in order:
Expand Down

0 comments on commit 3183fc5

Please sign in to comment.