Linux-Doc Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] docs: admin-guide: Add description of %c corename format
@ 2020-02-07 11:01 d.hatayama
  2020-02-13 18:38 ` Jonathan Corbet
  0 siblings, 1 reply; 2+ messages in thread
From: d.hatayama @ 2020-02-07 11:01 UTC (permalink / raw)
  To: corbet, linux-doc, linux-kernel

There is somehow no description of %c corename format specifier for
/proc/sys/kernel/core_pattern. The %c corename format specifier is
used by user-space application such as systemd-coredump, so it should
be documented.

To find where %c is handled in the kernel source code, look at
function format_corename() in fs/coredump.c.

Signed-off-by: HATAYAMA Daisuke <d.hatayama@fujitsu.com>
---
 Documentation/admin-guide/sysctl/kernel.rst | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst
index def0748..4557907 100644
--- a/Documentation/admin-guide/sysctl/kernel.rst
+++ b/Documentation/admin-guide/sysctl/kernel.rst
@@ -213,6 +213,7 @@ core_pattern is used to specify a core dumpfile pattern name.
        %h      hostname
        %e      executable filename (may be shortened)
        %E      executable path
+       %c      maximum size of core file by resource limit RLIMIT_CORE
        %<OTHER> both are dropped

 * If the first character of the pattern is a '|', the kernel will treat
--
1.8.3.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] docs: admin-guide: Add description of %c corename format
  2020-02-07 11:01 [PATCH] docs: admin-guide: Add description of %c corename format d.hatayama
@ 2020-02-13 18:38 ` Jonathan Corbet
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2020-02-13 18:38 UTC (permalink / raw)
  To: d.hatayama; +Cc: linux-doc, linux-kernel

On Fri, 7 Feb 2020 11:01:07 +0000
"d.hatayama@fujitsu.com" <d.hatayama@fujitsu.com> wrote:

> There is somehow no description of %c corename format specifier for
> /proc/sys/kernel/core_pattern. The %c corename format specifier is
> used by user-space application such as systemd-coredump, so it should
> be documented.
> 
> To find where %c is handled in the kernel source code, look at
> function format_corename() in fs/coredump.c.
> 
> Signed-off-by: HATAYAMA Daisuke <d.hatayama@fujitsu.com>
> ---
>  Documentation/admin-guide/sysctl/kernel.rst | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst
> index def0748..4557907 100644
> --- a/Documentation/admin-guide/sysctl/kernel.rst
> +++ b/Documentation/admin-guide/sysctl/kernel.rst
> @@ -213,6 +213,7 @@ core_pattern is used to specify a core dumpfile pattern name.
>         %h      hostname
>         %e      executable filename (may be shortened)
>         %E      executable path
> +       %c      maximum size of core file by resource limit RLIMIT_CORE
>         %<OTHER> both are dropped
> 
>  * If the first character of the pattern is a '|', the kernel will treat

Applied, thanks.  A couple of notes:

 - The patch was whitespace corrupted; I worked around that.
 - There is no need to resend after five days; it can take me a little
   while to catch up sometimes.

jon

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-07 11:01 [PATCH] docs: admin-guide: Add description of %c corename format d.hatayama
2020-02-13 18:38 ` Jonathan Corbet

Linux-Doc Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-doc/0 linux-doc/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-doc linux-doc/ https://lore.kernel.org/linux-doc \
		linux-doc@vger.kernel.org
	public-inbox-index linux-doc

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-doc


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git