From: Brian Warner Date: Tue, 2 Dec 2008 02:49:46 +0000 (-0700) Subject: storage.py: unbreak readonly_storage=True on windows X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/reliability?a=commitdiff_plain;h=d295a7afb9511eadefb849a3d39f21d31ba890cc;p=tahoe-lafs%2Ftahoe-lafs.git storage.py: unbreak readonly_storage=True on windows --- 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