OpenVZ Forum


Home » Mailing lists » Devel » [Patch03/05]- Containers: Initialization and Configfs interface
Re: [Patch03/05]- Containers: Initialization and Configfs interface [message #6512 is a reply to message #6370] Tue, 19 September 2006 16:33 Go to previous messageGo to previous message
Rohit Seth is currently offline  Rohit Seth
Messages: 101
Registered: August 2006
Senior Member
On Tue, 2006-09-19 at 11:38 -0400, Valdis.Kletnieks@vt.edu wrote:
> On Thu, 14 Sep 2006 18:41:26 PDT, Rohit Seth said:
>
> > --- linux-2.6.18-rc6-mm2.org/kernel/container_configfs.c 1969-12-31 16:00:00.000000000 -0800
> > +++ linux-2.6.18-rc6-mm2.ctn/kernel/container_configfs.c 2006-09-14 16:18:45.000000000 -0700
>
> > +static ssize_t simple_containerfs_attr_show(struct config_item *item,
> > + struct configfs_attribute *attr,
> > + char *page)
> ...
> > + switch (ctfs_attr->idx) {
> > + case CONFIGFS_CTN_ATTR_ID:
> > + tmp = sc->ctn.id;
> > + break;
> ...
> > + return sprintf(page, "%ld\n", tmp);
>
> What use is this value, given that we already have containers/user_friendly_name
> to use in the filesystem namespace? Or is this a mostly-debugging thing?

I think ids (numeric numbers) will be useful when printing the
information in /proc/<pid>/container User land tools don't necessarily
have to parse the (name) string in that case.

-rohit
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Patch 01/05]- Containers: Documentation on using containers
Next Topic: [patch03/05]: Containers(V2)- Container initialization and configfs interface
Goto Forum:
  


Current Time: Sun Aug 24 15:06:00 GMT 2025

Total time taken to generate the page: 0.06032 seconds