[Building Sakai] defaultsiteQuota at org.sakaiproject.content.api.ContentHostingService
Stephen Marquard
stephen.marquard at uct.ac.za
Tue Apr 21 10:50:17 PDT 2009
It's expressed in KB, not bytes.
In 2-6-x, you can set default quotas by site type as well, e.g. 1G for course, 200M for project:
content.quota.course=1048760
content.quota.project=204800
Regards
Stephen
>>> Seth Theriault <slt at columbia.edu> 04/21/09 7:15 PM >>>
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
_______________________________________________
sakai-dev mailing list
sakai-dev at collab.sakaiproject.org
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
More information about the sakai-dev
mailing list