From 506f9ce48df26a5c3a4197ad97f8cb0b40ce44b2 Mon Sep 17 00:00:00 2001 From: Zsolt Ero Date: Thu, 12 Sep 2024 12:56:43 +0200 Subject: [PATCH] comment --- modules/http_host/http_host_lib/sync.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/http_host/http_host_lib/sync.py b/modules/http_host/http_host_lib/sync.py index d872bed..82152d2 100644 --- a/modules/http_host/http_host_lib/sync.py +++ b/modules/http_host/http_host_lib/sync.py @@ -86,6 +86,9 @@ def auto_clean_btrfs(): versions_to_remove = set(local_versions).difference(versions_to_keep) for version in versions_to_remove: + # Interesting bit: linux allows us to remove the disk image file for a mount + # while the mount is still being used. + # We delete the disk image, update nginx config and only then unmount the /mnt dir. print(f' removing version for {area}: {version}') version_dir = config.runs_dir / area / version shutil.rmtree(version_dir)