Subject: Re: [vserver] PEBKACs I can't see with quotas and (unrelated) vserver init PID
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Thu, 29 Jul 2010 15:31:35 +0200

On Thu, Jul 29, 2010 at 11:12:44AM +0200, Grzegorz Nosek wrote:
> 2010/7/29 Jeff Jansen <jeff.jansen@kkoncepts.net>:
> > Yes, you can add capacities to a running vserver:
> > vattribute --xid VS_NAME --set --bcap|--ccap CAPACITY

> (...)

> > HTH

> Thanks, I was able to add SYS_RESOURCE to a running vserver (as
> verified in /proc/virtual/<xid>/status) but setquota fails exactly the
> same as before. Any ideas before I start digging in the kernel code?

no, digging is your only chance, and extending the
vroot to proxy the XFS quota ioctls, or using the
original device instead ...

make sure to add proper checks for the quota calls
as well, as I presume they will be guarded by an
admin check (which needs to be extended by the
quota capability)

best,
Herbert

> Best regards,
>  Grzegorz Nosek