From 17f653b15ff1edd43473f8c4f3adba33c3703d1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Sat, 21 Jan 2023 12:51:12 +0200 Subject: [PATCH] Disable free disk space checks --- remote.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/remote.py b/remote.py index f24f3fe..20499b0 100644 --- a/remote.py +++ b/remote.py @@ -36,9 +36,6 @@ def init_rawfile(volume_id, size): from util import run from consts import RESOURCE_EXHAUSTED_EXIT_CODE - if rawfile_util.get_capacity() < size: - raise CalledProcessError(returncode=RESOURCE_EXHAUSTED_EXIT_CODE, cmd="") - img_dir = rawfile_util.img_dir(volume_id) img_dir.mkdir(exist_ok=True) img_file = Path(f"{img_dir}/disk.img") @@ -75,8 +72,6 @@ def expand_rawfile(volume_id, size): size_inc = size - rawfile_util.metadata(volume_id)["size"] if size_inc <= 0: return - if rawfile_util.get_capacity() < size_inc: - exit(RESOURCE_EXHAUSTED_EXIT_CODE) rawfile_util.patch_metadata( volume_id,