From fe9c3e952940326a49cc61b7d7a49920f2304c85 Mon Sep 17 00:00:00 2001 From: Brian Warner <warner@lothar.com> Date: Tue, 2 Dec 2008 19:03:17 -0700 Subject: [PATCH] storage.py: oops, fix windows again, readonly_storage wasn't getting picked up properly --- src/allmydata/storage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/allmydata/storage.py b/src/allmydata/storage.py index 66f66886..f3fd9836 100644 --- a/src/allmydata/storage.py +++ b/src/allmydata/storage.py @@ -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 -- 2.45.2