storage.py: unbreak readonly_storage=True on windows
This commit is contained in:
parent
71c62f8fcb
commit
d295a7afb9
|
@ -908,9 +908,9 @@ class StorageServer(service.MultiService, Referenceable):
|
||||||
# returns None if it cannot be measured (windows)
|
# returns None if it cannot be measured (windows)
|
||||||
try:
|
try:
|
||||||
disk_avail = self.stat_disk(self.storedir)
|
disk_avail = self.stat_disk(self.storedir)
|
||||||
|
disk_avail -= self.reserved_space
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
return None
|
disk_avail = None
|
||||||
disk_avail -= self.reserved_space
|
|
||||||
if self.readonly_storage:
|
if self.readonly_storage:
|
||||||
disk_avail = 0
|
disk_avail = 0
|
||||||
return disk_avail
|
return disk_avail
|
||||||
|
|
Loading…
Reference in New Issue