From: Paul Menage <menage@google.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
linux-kernel@vger.kernel.org,
containers@lists.linux-foundation.org, lizf@cn.fujitsu.com,
balbir@linux.vnet.ibm.com
Subject: Re: [PATCH 1/2] cgroup allow subsys to set default mode of its own file
Date: Thu, 26 Feb 2009 16:28:11 -0800 [thread overview]
Message-ID: <6599ad830902261628k4ce8e1aflb7981672562801fb@mail.gmail.com> (raw)
In-Reply-To: <20090226130005.3282cb02.akpm@linux-foundation.org>
On Thu, Feb 26, 2009 at 1:00 PM, Andrew Morton
<akpm@linux-foundation.org> wrote:
> On Wed, 25 Feb 2009 16:35:55 +0900
> KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
>
>> When I wrote tools for maintain cgroup, I can't find which file is
>> writable intarfece or not via cgroup file systems. (finally, I did
>> dirty approach.)
>> IMHO, showing "this file is read-only" in explicit way is useful
>> for user-land (tools). In other story, a file whose name sounds read-only
>> may have "trigger" operation and support reseting. In this case,
>> "writable" is informative.
>
> Well, we have compatibility issues here. If we make this change, and
> people write tools which depend upon that change then those tools might
> break when run upon older kernels.
I don't think that's too big a deal - a write can always fail at the
whim of a cgroups subsystem, so this would just be a hint to a tool
that it shouldn't even bother trying to write to the file. It should
be able to handle a failure.
But I don't see why we can't figure out the mode automatically based
on whether or not there's a write handler defined for the control
file.
Paul
next prev parent reply other threads:[~2009-02-27 0:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-25 7:35 KAMEZAWA Hiroyuki
2009-02-25 7:37 ` [PATCH 2/2] cgroup/memcg show correct file mode KAMEZAWA Hiroyuki
2009-02-25 8:03 ` Balbir Singh
2009-02-25 8:09 ` Dhaval Giani
2009-02-25 8:01 ` [PATCH 1/2] cgroup allow subsys to set default mode of its own file Li Zefan
2009-02-25 8:03 ` Balbir Singh
2009-02-26 21:00 ` Andrew Morton
2009-02-27 0:20 ` KAMEZAWA Hiroyuki
2009-02-27 5:08 ` Dhaval Giani
2009-02-27 5:12 ` Balbir Singh
2009-02-27 0:28 ` Paul Menage [this message]
2009-02-27 0:38 ` KAMEZAWA Hiroyuki
2009-02-27 0:40 ` Li Zefan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6599ad830902261628k4ce8e1aflb7981672562801fb@mail.gmail.com \
--to=menage@google.com \
--cc=akpm@linux-foundation.org \
--cc=balbir@linux.vnet.ibm.com \
--cc=containers@lists.linux-foundation.org \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lizf@cn.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®