Re: [PATCH 02/10] cgroup: introduce cgroup_subsys->legacy_name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 28, 2015 at 02:39:36PM +0800, Zefan Li wrote:
> > @@ -1448,7 +1451,8 @@ static int parse_cgroupfs_options(char *data, struct cgroup_sb_opts *opts)
> >  		}
> >  
> >  		for_each_subsys(ss, i) {
> > -			if (strcmp(token, ss->name))
> > +			if (strcmp(token, ss->name) &&
> > +			    strcmp(token, ss->legacy_name))
> >  				continue;
> 
> As mounting with specified subsystems is only allowed in legacy hierarchy,
> I think we should allow using leagcy name only?

Yeah, good point.  Will update the patch.

Thanks.

-- 
tejun
--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux