[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <49A7F9D7.4060907@free.fr>
Date: Fri, 27 Feb 2009 15:33:59 +0100
From: Cedric Le Goater <legoater@...e.fr>
To: Alexey Dobriyan <adobriyan@...il.com>
CC: Greg Kurz <gkurz@...ibm.com>, linux-api@...r.kernel.org,
containers@...ts.linux-foundation.org, mpm@...enic.com,
linux-kernel@...r.kernel.org,
Dave Hansen <dave@...ux.vnet.ibm.com>, linux-mm@...ck.org,
tglx@...utronix.de, viro@...iv.linux.org.uk, hpa@...or.com,
Ingo Molnar <mingo@...e.hu>, torvalds@...ux-foundation.org,
Andrew Morton <akpm@...ux-foundation.org>, xemul@...nvz.org
Subject: Re: How much of a mess does OpenVZ make? ;) Was: What can OpenVZ
do?
> How do you restore set of uts_namespace's?
clone(CLONE_NEWUTS);
sethostname(...)
> Kernel never exposes to userspace which are the same, which are independent.
I think you are addressing the problem from a kernel POV. If you see it
from the user POV, what he cares about is what the gethostname() returns
and not 'struct uts_namespace'.
that doesn't mean that C/R shouldn't be aware of the kernel implementation
but if you think in terms of user API, it makes life a easier.
Cheers,
C.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists