projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d378347
)
storage.py: oops, fix windows again, readonly_storage wasn't getting picked up properly
author
Brian Warner
<warner@lothar.com>
Wed, 3 Dec 2008 02:03:17 +0000
(19:03 -0700)
committer
Brian Warner
<warner@lothar.com>
Wed, 3 Dec 2008 02:03:17 +0000
(19:03 -0700)
src/allmydata/storage.py
patch
|
blob
|
history
diff --git
a/src/allmydata/storage.py
b/src/allmydata/storage.py
index 66f66886391aeee7d7f0092881d4f93fb7ee544b..f3fd9836070d27688a992f40a91aac52de60a9fb 100644
(file)
--- 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