From d295a7afb9511eadefb849a3d39f21d31ba890cc Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Mon, 1 Dec 2008 19:49:46 -0700 Subject: [PATCH] storage.py: unbreak readonly_storage=True on windows --- src/allmydata/storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/storage.py b/src/allmydata/storage.py index 13ef5347..66f66886 100644 --- a/src/allmydata/storage.py +++ b/src/allmydata/storage.py @@ -908,9 +908,9 @@ class StorageServer(service.MultiService, Referenceable): # returns None if it cannot be measured (windows) try: disk_avail = self.stat_disk(self.storedir) + disk_avail -= self.reserved_space except AttributeError: - return None - disk_avail -= self.reserved_space + disk_avail = None if self.readonly_storage: disk_avail = 0 return disk_avail -- 2.45.2