We're developing a SaaS application which, among other things, provides space for Mercurial (Hg) repositories. Now, Hg repo is just a directory on a disk and each user is allowed to have as many of them as possible, but the limiting factor here is the amount of disk space allocated based on their subscription (like, 100 Mb for Free plan, 6 Gb for Premium, etc).
What we're trying to do is to have per-directory quotas for one user (which will be the user ASP.NET site will be running under). Is this doable under Windows Server? If it is, can it be done programmatically?