Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion simplyblock_core/controllers/snapshot_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def clone(snapshot_id, clone_name, new_size=0, pvc_name=None, pvc_namespace=None

if new_size:
new_size = math.ceil(new_size / (1024 * 1024 * 1024)) * 1024 * 1024 * 1024
if snap.lvol.size >= new_size:
if snap.lvol.size > new_size:
msg = f"New size {new_size} must be higher than the original size {snap.lvol.size}"
logger.error(msg)
return False, msg
Expand Down
Loading