OpenVZ Forum


Home » Mailing lists » Devel » [Patch03/05]- Containers: Initialization and Configfs interface
Re: [Patch03/05]- Containers: Initialization and Configfs interface [message #6410 is a reply to message #6370] Fri, 15 September 2006 16:47 Go to previous messageGo to previous message
Rohit Seth is currently offline  Rohit Seth
Messages: 101
Registered: August 2006
Senior Member
On Fri, 2006-09-15 at 18:30 +0200, Björn Steinbrink wrote:
> On 2006.09.14 18:41:26 -0700, Rohit Seth wrote:
> > +static int __init configfs_container_init(void)
> > +{
> > + int ret;
> > +
> > + config_group_init(&containerfs_group.cs_subsys.su_group) ;
> > + init_MUTEX(&containerfs_group.cs_subsys.su_sem);
> > + ret = configfs_register_subsystem(&containerfs_group.cs_subsys );
> > +
> > + if (ret)
> > + printk(KERN_ERR "Error %d while registering container subsystem\n", ret);
> > + else {
> > + container_wq = create_workqueue("Kcontainerd");
> > + if (container_wq == NULL) {
> > + ret = -ENOMEM;
> > + printk(KERN_ERR "Unable to create Container controllers");
>
> Shouldn't the subsystem be unregistered here?
>

Yes. Indeed. I'll fix it.

Thanks,
-rohit

> > + }
> > + }
> > + return ret;
> > +}
>
> Regards,
> Björn
 
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: Thu Jul 10 02:42:42 GMT 2025

Total time taken to generate the page: 0.02698 seconds