From: Brian Warner Date: Wed, 3 Dec 2008 02:03:17 +0000 (-0700) Subject: storage.py: oops, fix windows again, readonly_storage wasn't getting picked up properly X-Git-Url: https://git.rkrishnan.org/rgr-080307.php?a=commitdiff_plain;h=fe9c3e952940326a49cc61b7d7a49920f2304c85;p=tahoe-lafs%2Ftahoe-lafs.git storage.py: oops, fix windows again, readonly_storage wasn't getting picked up properly --- 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