Skip to content

Commit

Permalink
fixup! zfs-vol: implement Volume.snapshot 2/n
Browse files Browse the repository at this point in the history
  • Loading branch information
ydirson committed Apr 3, 2024
1 parent be45c5a commit 59c85fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/volume/org.xen.xapi.storage.zfs-vol/sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ def ls(self, dbg, sr):
if is_snapshot:
vol_name = zfsutils.zvol_find_snap_path(dbg, pool_name, vdi.volume.id)
if vol_name is None:
# FIXME is there a way to return an error entry instead?
raise Exception("snapshot volume %s not found on disk" % (vdi.volume.id))
log.error("snapshot volume %s not found on disk", vdi.volume.id)
continue
else:
vol_name = zfsutils.zvol_path(pool_name, vdi.volume.id)
psize = zfsutils.vol_get_used(dbg, vol_name)
Expand Down

0 comments on commit 59c85fa

Please sign in to comment.