]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
storage.py: unbreak readonly_storage=True on windows
authorBrian Warner <warner@allmydata.com>
Tue, 2 Dec 2008 02:49:46 +0000 (19:49 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 2 Dec 2008 02:49:46 +0000 (19:49 -0700)
src/allmydata/storage.py

index 13ef5347d0fd6eb3e3502e827e0bfb54aa2fc69e..66f66886391aeee7d7f0092881d4f93fb7ee544b 100644 (file)
@@ -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