[Building Sakai] default siteQuota at org.sakaiproject.content.api.ContentHostingService

Seth Theriault slt at columbia.edu
Tue Apr 21 10:15:20 PDT 2009


Ian Goh (Exchange IMAP) wrote:

> Question #1
> 
> Where is the default siteQuota value of 1Gb =  1048576 is being set?
> 
>  It's not in our tomcat/sakai/sakai.properties, and it's not in the
> /component/branches/sakai_2-5-x/component-api/component/src/config/org/sakaiproject/config/sakai.properties 

For non-JCR content hosting, it is set in:

content/content-impl/pack/src/webapp/WEB-INF/components.xml

Using sakai.propertiesis the preferred "override" method.

> Question #2
> 
> Why is it 1048576?  Why not 1024000?

The siteQuota is expressed in bytes, therefore:

 1 Gb = 1024 Kb/Gb * 1024 b/Kb = 1048576 bytes


> Question #3
> 
> If we wanted to override the siteQuota value to 2Gb, do I add another 
> 1024000 or do I double the 1048576?

Double it.

Seth



More information about the sakai-dev mailing list