[lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

Serge Hallyn serge.hallyn at ubuntu.com
Fri Nov 1 17:34:12 UTC 2013


Quoting Michael H. Warfield (mhw at WittsEnd.com):
> On Thu, 2013-10-31 at 13:00 -0500, Serge Hallyn wrote: 
> > Quoting Michael H. Warfield (mhw at WittsEnd.com):
> > > I did incorporate your suggestion of using the hash of the rootfs path
> > > as the subdirectory under the hosts /dev/ for the container.  I also
> > 
> > (Printed this out to look it over, just putting all my comments together
> > here) :
> > 
> > 1. I think if /dev is not devtmpfs, we should just bail on this.
> > 
> > 2. You say in comments that you're using the cgroup name, but it seems
> >    you're actually just using the container name?
> 
> Ok...  I'm going to experiment with this a bit but check me on this...
> In the routine "lxc_setup()" the first parameter is "name".  Is that the
> cgroup name or just the container name?  I take it, from your remark,
> this is just the container name and the unique cgroup name may be
> something different.

Correct.

But if you're using $(echo "$lxcpath.$lxcname" | sha1sum) why do you
need the cgroup name?

> Is that something I should be pulling out of the
> cgroup info structure?

Yes.  I don't know offhand where though.

-serge




More information about the lxc-devel mailing list