]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
storage.py: oops, fix windows again, readonly_storage wasn't getting picked up properly
authorBrian Warner <warner@lothar.com>
Wed, 3 Dec 2008 02:03:17 +0000 (19:03 -0700)
committerBrian Warner <warner@lothar.com>
Wed, 3 Dec 2008 02:03:17 +0000 (19:03 -0700)
src/allmydata/storage.py

index 66f66886391aeee7d7f0092881d4f93fb7ee544b..f3fd9836070d27688a992f40a91aac52de60a9fb 100644 (file)
@@ -871,6 +871,8 @@ class StorageServer(service.MultiService, Referenceable):
             for name,v in ld.items():
                 stats['storage_server.latencies.%s.%s' % (category, name)] = v
         writeable = True
+        if self.readonly_storage:
+            writeable = False
         try:
             s = os.statvfs(self.storedir)
             disk_total = s.f_bsize * s.f_blocks