﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	launchpad_bug
1384	use storage/shares/ instead of storage/ to detect available space	zooko	zooko	"Gwern on IRC had this issue after they made their {{{storage/shares/}}} be a symlink to an external hard disk (on my suggestion). Once they reported the issue then I realized that many storage servers that I am running (for volunteergrid, among others) have this same issue.

I think we should examine the partition which has {{{storage/shares/}}} instead of the one which has {{{storage/}}} when determining how much disk space is available.

Here's a patch:
{{{
--- old-bothw/src/allmydata/storage/server.py   2011-03-30 17:12:13.000000000 -0600
+++ new-bothw/src/allmydata/storage/server.py   2011-03-30 17:12:13.000000000 -0600
@@ -192,7 +192,7 @@
 
         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
}}}

I can't think of a useful way to unit test this patch! So, I'm marking it as {{{review-needed}}}.
"	defect	closed	minor	1.9.0	code-nodeadmin	1.8.2	fixed	usability configuration defaults storage reviewed		
