Skip to content

Commit dd75e38

Browse files
committed
zfs-vol: test chain of VDI clones and their destuction (xfail)
Cloning a VDI without a snapshot is just not implemented yet. Signed-off-by: Yann Dirson <[email protected]>
1 parent 2415229 commit dd75e38

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: tests/storage/zfsvol/test_zfsvol_sr.py

+7
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,13 @@ def create_vdi_and_snaps_chain(sr, vdi_label):
191191
vdis.append(vdis[-1].clone())
192192
return vdis
193193

194+
def create_vdi_chain(sr, vdi_label):
195+
"Create a chain of alternating VDI snapshots and clones on first host."
196+
vdis = [sr.create_vdi(vdi_label)]
197+
for i in range(2):
198+
vdis.append(vdis[-1].clone())
199+
return vdis
200+
194201
def teardown_vdi_chain(sr, vdis, order):
195202
"Destroy a list of VDIs in order specified by a sequence of VDIs indices."
196203
for i in order:

0 commit comments

Comments
 (0)