<div dir="ltr">If anything, make the quota soft, with no hard quota - and set up mails to be sent when the quota is reached - just to be aware that something is going on.<br><br><div class="gmail_quote">On Thu, Jan 21, 2010 at 2:09 PM, Shahar Dag <span dir="ltr"><<a href="mailto:dag@cs.technion.ac.il">dag@cs.technion.ac.il</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello<br>
<br>
As I already said, setting quota on an SVN project is more a meter of<br>
awareness, then a real disk space limitation.<br>
<br>
The idea of using the pre-commit hock to limit the size of a commit is very<br>
interesting.<br>
Quick google came with several sites:<br>
<a href="http://www.davidgrant.ca/limit_size_of_subversion_commits_with_this_hook" target="_blank">http://www.davidgrant.ca/limit_size_of_subversion_commits_with_this_hook</a><br>
<a href="http://svn.haxx.se/users/archive-2009-09/0928.shtml" target="_blank">http://svn.haxx.se/users/archive-2009-09/0928.shtml</a><br>
I also found this, but I totally don't understand it<br>
<a href="http://lists.freebsd.org/pipermail/svn-src-svnadmin/2008-November/000009.html" target="_blank">http://lists.freebsd.org/pipermail/svn-src-svnadmin/2008-November/000009.html</a><br>
<br>
I don't have time now to dig into the suggestions. I will update the list<br>
after I will have a working hock<br>
<font color="#888888"><br>
Shahar<br>
</font><div class="im">----- Original Message -----<br>
From: "Nadav Har'El" <<a href="mailto:nyh@math.technion.ac.il">nyh@math.technion.ac.il</a>><br>
To: "Shahar Dag" <<a href="mailto:dag@cs.technion.ac.il">dag@cs.technion.ac.il</a>><br>
Cc: "Haifaux" <<a href="mailto:haifux@haifux.org">haifux@haifux.org</a>><br>
Sent: Thursday, January 21, 2010 10:43 AM<br>
Subject: Re: [Haifux] SVN quota<br>
<br>
<br>
</div><div><div></div><div class="h5">> On Tue, Jan 19, 2010, Shahar Dag wrote about "Re: [Haifux] SVN quota":<br>
>> It is true that users can't delete data from the SVN.<br>
>> The only thing users can do is ask for additional quota. If they know<br>
>> that they are running out of quota in advanced, they can ask to enlarge<br>
>> the quota before they are out of disk space (which usually happens<br>
>> 01:00 ).<br>
>> Then I can check if the disk space usage is justify and respond on time.<br>
><br>
> Shachar Shemesh made a very good point. There's very little point in a<br>
> quota system if the person who is reaching the end of his quota can't<br>
> do anything about it to clean up his act. If the only thing he can do is<br>
> to<br>
> ask you to increase his quota (and you never refuse), why have a quota in<br>
> the<br>
> first place - to make people feel bad about taking up space? To add<br>
> beaurocracy?<br>
><br>
> I have several years experience with using and administering SVN<br>
> repositories,<br>
> and my experience is that problems with repository sizes always stem from<br>
> one<br>
> issue: that somebody, usually mistakenly or due to lack of understanding<br>
> of<br>
> what SVN is supposed to do, did one huge commit. E.g., somebody added some<br>
> huge test data or outputs to the repository, which they shouldn't have<br>
> done in the first place. Once the user added a huge commit, Subversion<br>
> doesn't<br>
> give you any (convenient) facility to remove this commit, or the huge<br>
> files<br>
> in it, from the history. You can get mails that you are close to your<br>
> quota<br>
> until hell freezes over - and there's nothing you can do about it but say<br>
> "I'm sorry"...<br>
><br>
> If you must have SVN quotas, one thing I'd try first is to try to enforce<br>
> first some sort of limit the size of a single commit. For example, if you<br>
> give people a 100 MB quota for the repository, limit a single commit size<br>
> to 30 MB; If somebody fills up more than 30% of his quota in a single<br>
> commit - something is probably wrong. If you let him do it, he'll probably<br>
> be sorry later because he'll not have enough space to continue using his<br>
> repository. Of course, you can play with this 30% number. Perhaps enforce<br>
> this single-commit-quota just after 50% of the total quota is finished -<br>
> or come with whatever policy makes sense for you. Also, you'll need to<br>
> figure out how to enforce this policy :-) (some sort of commmit hook might<br>
> work, but I really didn't try to implement this idea).<br>
><br>
> Nadav.<br>
><br>
> --<br>
> Nadav Har'El | Thursday, Jan 21 2010, 6 Shevat<br>
> 5770<br>
> <a href="mailto:nyh@math.technion.ac.il">nyh@math.technion.ac.il</a><br>
> |-----------------------------------------<br>
> Phone +972-523-790466, ICQ 13349191 |Why aren't fishmongers generous?<br>
> Their<br>
> <a href="http://nadav.harel.org.il" target="_blank">http://nadav.harel.org.il</a> |business makes them selfish.<br>
><br>
<br>
_______________________________________________<br>
Haifux mailing list<br>
<a href="mailto:Haifux@haifux.org">Haifux@haifux.org</a><br>
<a href="http://hamakor.org.il/cgi-bin/mailman/listinfo/haifux" target="_blank">http://hamakor.org.il/cgi-bin/mailman/listinfo/haifux</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Man is the only animal that laughs and weeps, for he is the only animal that is struck with the difference between what things are and what they ought to be.<br>
- William Hazlitt<br><br>Ohad Lutzky<br>
</div>