[libvirt] [PATCH 2 of 2] Use cgroup functions to set resource limits on LXC domains

Dan Smith danms at us.ibm.com
Wed Oct 1 20:58:40 UTC 2008


DB> Should use lxcError() here - as things are setup by virExec(),
DB> calls to lxcError() call to virRaiseError() which ultimately calls
DB> fprintf(). By using lxcError() can we more easily change logging
DB> later if needed.

Indeed.

DB> I think we need to virCgroupRemove() in the error path to cleanup
DB> a partially constructed cgroup ?

Yep, I'll fix that too.

Thanks!

-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms at us.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20081001/7cda4525/attachment-0001.sig>


More information about the libvir-list mailing list