[libvirt] [PATCH 0/2] Filesystem limits for containers

Guido Günther agx at sigxcpu.org
Tue Apr 24 19:37:06 UTC 2012


Hi,
the following two patches are a first stab at filesystem limits for
containers. They're not ment for detailed review just to start the
discussion. With these two patches space and inode limits in openvz
containers are printed in the domain config as:

<filesystem type='template' accessmode='passthrough'>
      <source name='debian'/>
      <target dir='/'/>
      <hardlimit>1153024</hardlimit>
      <softlimit>1048576</softlimit>
      <inodes_hardlimit>220000</inodes_hardlimit>
      <inodes_softlimit>200000</inodes_softlimit>
</filesystem>

Does this look o.k.? If so I'd cook up the schema updates and more
parsing code. Other container solutions like lxc might have similar
needs.
Cheers,
 -- Guido

Guido Günther (2):
  domain_conf: add filesystem limits to virDomainFSDef
  openvz; support file system quota reporting

 src/conf/domain_conf.c   |   15 ++++++
 src/conf/domain_conf.h   |    4 ++
 src/openvz/openvz_conf.c |  114 +++++++++++++++++++++++++++++-----------------
 3 files changed, 92 insertions(+), 41 deletions(-)

-- 
1.7.10




More information about the libvir-list mailing list