Fix bug with negative capacity in overprovisioned disks

This commit is contained in:
Mehran Kholdi 2021-10-07 18:09:59 +03:30
parent 520864be1a
commit 9d5ed19d7b
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ def init_rawfile(volume_id, size):
def get_capacity():
import rawfile_util
return rawfile_util.get_capacity()
cap = rawfile_util.get_capacity()
return max(0, cap)
@remote_fn