[Devel] Re: [PATCH 4/4] Conditionally force on namespaces

Nathan Lynch ntl at pobox.com
Fri Jun 5 14:21:02 PDT 2009


"Serge E. Hallyn" <serue at us.ibm.com> writes:
> Quoting Dave Hansen (dave at linux.vnet.ibm.com):
>> 
>> This should work around the compile issues that Nathan
>> pointed out yesterday.  It's too bad that 'select' is
>> such a blunt object.  We could surely use a soft select
>> or something.  But this hacks around it a bit.
>> 
>> Create a separate "*_NS_DEP" Kconfig option for the
>> dependencies for each namespace.  Make the real config
>> option and the c/r 'select' bot dependent on the new
>> common one.
>> 
>> This should at least keep compile errors from being
>> introduced.  Whether this is rude or not is a separate
>> questions. :)
>
> Yeah I'm not sure I'm a fan of this...
>
> While I hate chasing down missing dependencies, maybe
> CONFIG_CHECKPOINT should just depend on all the namespaces
> instead of selecting them?
>
> I'd assumed that was Nathan was really asking for, though
> I could be wrong.

I was mainly interested in preventing build breaks.  :)

While Oren's checkpoint implementation is useful with any combination of
the *_NS config options, ensuring that the kernel builds and functions
correctly with all the permutations looks non-trivial.  Making
CHECKPOINT depend on all the *_NS options looks like an easy way to
avoid the mess.  Dave's patches seem to provide the maximum amount of
flexibility, but my suspicion is that most interested parties tend to
turn on all of *_NS anyway (as distros are starting to do), and that
other configurations (e.g. CHECKPOINT=y, NET_NS=n) simply won't get
test coverage in practice.
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list