2010/7/29 Herbert Poetzl <herbert@13thfloor.at>:
> I remember that xfs has 'special' quota ioctls different
> from the 'normal' quota ioctls, but I'm not sure this
> is still true (or even was true :) as I haven't looked
> at xfs for some time now ....
Yup, they have an extra 'X' somewhere in the name.
> in any case, strace -fF should give some insight what
> ioctl (or syscall) fails with EPERM ...
Indeed. From my first mail:
quotactl(Q_XSETQLIM|GRPQUOTA, "/dev/hdv1", 200203, {4128768, 4000000,
0, 0, 0, 301808, 19809, 0}) = -1 EPERM (Operation not permitted)
BTW, I now see the guest is missing CAP_SYS_RESOURCE -- that would be
the reason, wouldn't it? Can I add it to a running guest? vattribute
--help does not really suggest a way to do it.
BTW2, echo SYS_RESOURCE >> /etc/vservers/<guest>/bcapabilites is the
proper way to enable it, right?
BTW3, what about the init pid issue?
Best regards,
Grzegorz Nosek
Received on Thu Jul 29 09:02:39 2010