Skip to content

Commit

Permalink
cleanup dead code
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Todorov <[email protected]>
  • Loading branch information
atodorov-storpool committed Dec 11, 2019
1 parent cc9fa39 commit d15fb0f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vmm/kvm/snapshot_revert-storpool
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,13 @@ EOF
volume="${snap%-$SNAP_ID}"
[ "${volume%-iso}" = "$volume" ] && mode="rw" || mode="ro"
storpoolVolumeDetach "$volume" "force" "$VMHOST" "all"
# trapAdd APPEND "storpoolVolumeAttach \"$volume\" \"$VMHOST\" \"$mode\""
storpoolVolumeInfo "$volume"
OLD_SIZE_M=$((V_SIZE/1024/1024))
if [ "$V_TYPE" = "CDROM" ]; then
mode="ro"
fi
tmpVolume="${volume}-${SP_TMP}"
storpoolRetry volume "$volume" rename "$tmpVolume" >/dev/null || finish=0
# trapAdd APPEND "storpoolRetry volume \"$tmpVolume\" rename \"$volume\""
storpoolSnapshotClone "$snap" "$volume" "$V_TEMPLATE_NAME" || finish=0
storpoolVolumeInfo "$volume"
NEW_SIZE_M=$((V_SIZE/1024/1024))
Expand Down

0 comments on commit d15fb0f

Please sign in to comment.