linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Michael Sinz" <Michael.Sinz@sinz.org>
To: "Andrew Morton" <akpm@digeo.com>, "Michael Sinz" <msinz@wgate.com>
Cc: "Alan Cox" <alan@lxorguk.ukuu.org.uk>,
	"Linux Kernel List" <linux-kernel@vger.kernel.org>,
	"marcelo@conectiva.com.br" <marcelo@conectiva.com.br>,
	"mks@sinz.org" <mks@sinz.org>,
	"riel@conectiva.com.br" <riel@conectiva.com.br>,
	"Robert Love" <rml@tech9.net>
Subject: Re: [PATCH] kernel 2.4.19 & 2.5.38 - coredump sysctl
Date: Fri, 20 Sep 2002 19:32:09 -0400	[thread overview]
Message-ID: <200209202332.TAA09371@vixen.sinz.org> (raw)
In-Reply-To: <3D8B98D4.67A76C1C@digeo.com>

On Fri, 20 Sep 2002 14:53:24 -0700, Andrew Morton wrote:

>Michael Sinz wrote:
>> 
>> ...
>> > Does it need to be this fancy?  Why not just have:
>> >
>> >         if (core_name_format is unset)
>> >                 use "core"
>> >         else
>> >                 use core_name_format/nodename-uid-pid-comm.core
>> >
>> > which saves all that string format processing, while giving
>> > people everything they could want?
>> 
>> Well, it depends on if you really need the complex form or not.
>> 
>> There are some people who use a format of:
>> 
>>         %N.%P.core
>> 
>> which places the core file in the current directory but adds in the
>> name of the program.  (Something that is very nice when you have
>> a lot of programs that may core "together" when something bad happens)
>
>They could use
>
>	echo . > /proc/sys/vm/core_path
> 
>> The string processing is not that much work anyway (very small)
>> and, given the fact that I am about to write to disk a core dump,
>> it can not be a critical path/fast path issue either :-)
>
>True, but it's all more code and I don't believe that it adds
>much value.  It means that people need to run off and find
>the documentation, then choose a format.  Which will be different
>from other people's chosen formats.  Which will make development
>and testing and installation of downstream scripts harder, etc.
>
>You can give people *all* the options at no cost, and without
>irritating them, and with less code.  So why make it harder for
>everyone by adding this optionality?

Yes, it could be a bit smaller by removing the format string.
You still need to do all of the string concat work abeit without
the check for what you do next.

Is that really the best way to go?  Does it really add that much to
the documentation overhead?  (Which reminds me that I should add
some documentation to the patch ;^)


-- 
Michael Sinz ---- Technology and Engineering Director/Consultant
"Starting Startups"                 mailto:michael.sinz@sinz.org
My place on the web  ------->>  http://www.sinz.org/Michael.Sinz



  reply	other threads:[~2002-09-20 23:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-20 20:40 [PATCH] kernel 2.4.19 & 2.5.38 - coredump sysctl Michael Sinz
2002-09-20 20:59 ` Andrew Morton
2002-09-20 21:01 ` Andrew Morton
2002-09-20 21:29   ` Michael Sinz
2002-09-20 21:50     ` Andrew Morton
2002-09-20 21:53     ` Andrew Morton
2002-09-20 23:32       ` Michael Sinz [this message]
2002-09-22 19:02   ` Bill Davidsen
2002-09-22 23:59     ` Andrew Morton
2002-09-23 19:00     ` Michael Sinz
     [not found] <3D8B87C7.7040106@wgate.com.suse.lists.linux.kernel>
     [not found] ` <3D8B8CAB.103C6CB8@digeo.com.suse.lists.linux.kernel>
     [not found]   ` <3D8B934A.1060900@wgate.com.suse.lists.linux.kernel>
     [not found]     ` <3D8B982A.2ABAA64C@digeo.com.suse.lists.linux.kernel>
2002-09-20 23:12       ` Andi Kleen
2002-09-20 23:27         ` Andrew Morton
2002-09-20 23:47           ` Andi Kleen
2002-09-21 20:19             ` Francois Romieu

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=200209202332.TAA09371@vixen.sinz.org \
    --to=michael.sinz@sinz.org \
    --cc=akpm@digeo.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    --cc=mks@sinz.org \
    --cc=msinz@wgate.com \
    --cc=riel@conectiva.com.br \
    --cc=rml@tech9.net \
    /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;
as well as URLs for NNTP newsgroup(s).