Re: [systemd-devel] quota-support in systemd-nspawn

2015-10-17 Thread Lennart Poettering
On Fri, 16.10.15 07:15, Andreas Matthus (andreas.matt...@tu-dresden.de) wrote:

> Hallo,
> 
> systemd ist a great solution! ;-)
> 
> My question is using xfs-quotas inside a systemd-nspawn-container.
> 
> I mount a xfs-filesystem in the host with usrquota,grpquota and can working
> with quotas in it. The mountpoint is in a folder down of the startfolder
> from the systemd-nspawn-container. So i can use this filesystem inside the
> machine. Thats well. But I cant use quota-support. /dev/mapper/... don't
> exist and so all tools failed.
> 
> Can you help me to get access to quotas?

Well, you could make the device nodes available using --bind=, but
it's really ugly.

Generally, ext4/xfs quota require device access, and that's really not
such a good idea when mixed with containers.

btrfs quota makes a lot more sense there as they provide proper kernel
APIs, and in fact we already cover that nicely with "machinectl
set-limit".

Lennart

-- 
Lennart Poettering, Red Hat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] quota-support in systemd-nspawn

2015-10-16 Thread Andreas Matthus
Hallo,

systemd ist a great solution! ;-)

My question is using xfs-quotas inside a systemd-nspawn-container.

I mount a xfs-filesystem in the host with usrquota,grpquota and can working
with quotas in it. The mountpoint is in a folder down of the startfolder
from the systemd-nspawn-container. So i can use this filesystem inside the
machine. Thats well. But I cant use quota-support. /dev/mapper/... don't
exist and so all tools failed.

Can you help me to get access to quotas?

with regards
Andreas Matthus 

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel