Re: [PATCH 2/3] cgroup: make the default root invisible when it's umounted

2014-06-04 Thread Li Zefan
On 2014/6/5 9:20, Tejun Heo wrote: > Hello, > > On Wed, Jun 04, 2014 at 04:59:59PM +0800, Li Zefan wrote: >> The example I gave is the same result if sane_behavior is not specified, >> so this is a behavioural change for the old interface? > > Hmmm? Either the userland knows about unified hierar

Re: [PATCH 2/3] cgroup: make the default root invisible when it's umounted

2014-06-04 Thread Tejun Heo
Hello, On Wed, Jun 04, 2014 at 04:59:59PM +0800, Li Zefan wrote: > The example I gave is the same result if sane_behavior is not specified, > so this is a behavioural change for the old interface? Hmmm? Either the userland knows about unified hierarchy or not and there's no point in hiding it if

Re: [PATCH 2/3] cgroup: make the default root invisible when it's umounted

2014-06-04 Thread Li Zefan
On 2014/6/3 21:01, Tejun Heo wrote: > On Tue, Jun 03, 2014 at 12:05:22PM +0800, Li Zefan wrote: >> Before this patch (in a fresh system): >> >># cat /proc/$$/cgroup >># mount -t cgroup -o __DEVEL__sane_behavior xxx /cgroup >># umount /cgroup >># cat /proc/$$/cgroup >> >> 0:cpuse

Re: [PATCH 2/3] cgroup: make the default root invisible when it's umounted

2014-06-03 Thread Tejun Heo
On Tue, Jun 03, 2014 at 12:05:22PM +0800, Li Zefan wrote: > Before this patch (in a fresh system): > ># cat /proc/$$/cgroup ># mount -t cgroup -o __DEVEL__sane_behavior xxx /cgroup ># umount /cgroup ># cat /proc/$$/cgroup > > 0:cpuset,cpu,cpuacct,memory,devices,freezer,net_cls,

[PATCH 2/3] cgroup: make the default root invisible when it's umounted

2014-06-02 Thread Li Zefan
Before this patch (in a fresh system): # cat /proc/$$/cgroup # mount -t cgroup -o __DEVEL__sane_behavior xxx /cgroup # umount /cgroup # cat /proc/$$/cgroup 0:cpuset,cpu,cpuacct,memory,devices,freezer,net_cls,blkio,perf_event,net_prio,hugetlb:/ After this patch (in a fresh system):