]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
src/allmydata/storage/server.py: use the filesystem of storage/shares/, rather than...
authordavid-sarah <david-sarah@jacaranda.org>
Tue, 19 Jul 2011 02:27:52 +0000 (19:27 -0700)
committerdavid-sarah <david-sarah@jacaranda.org>
Tue, 19 Jul 2011 02:27:52 +0000 (19:27 -0700)
src/allmydata/storage/server.py

index 9d93e9905fade819493610b2dfc807b7b118c3f0..48e295713c28c2d10e0cfae3fb90807d2ad33828 100644 (file)
@@ -172,7 +172,7 @@ class StorageServer(service.MultiService, Referenceable):
                 stats['storage_server.latencies.%s.%s' % (category, name)] = v
 
         try:
-            disk = fileutil.get_disk_stats(self.storedir, self.reserved_space)
+            disk = fileutil.get_disk_stats(self.sharedir, self.reserved_space)
             writeable = disk['avail'] > 0
 
             # spacetime predictors should use disk_avail / (d(disk_used)/dt)
@@ -204,7 +204,7 @@ class StorageServer(service.MultiService, Referenceable):
 
         if self.readonly_storage:
             return 0
-        return fileutil.get_available_space(self.storedir, self.reserved_space)
+        return fileutil.get_available_space(self.sharedir, self.reserved_space)
 
     def allocated_size(self):
         space = 0