The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Hugh Dickins <hugh@veritas.com>
To: Roland McGrath <roland@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	linux-kernel@vger.kernel.org, "Kawai,
	Hidehiro" <hidehiro.kawai.ez@hitachi.com>
Subject: Re: [PATCH] ELF core dump options
Date: Thu, 26 Jul 2007 17:57:36 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0707261753030.370@blonde.wat.veritas.com> (raw)
In-Reply-To: <20070726113924.6017C4D058D@magilla.localdomain>

On Thu, 26 Jul 2007, Roland McGrath wrote:
> 
> > hm, I'm now wondering whether testing i_nlink was the best (or official)
> > way of determining whether a MAP_SHARED vma is anonymous or file-backed.
> > Hugh will know.
> 
> Well, it doesn't exactly test that it's not "file-backed".  (Technically
> anything shared is file-backed, even if by a shmem virtual file.)  It tests
> whether the backing file will probably ever be found on disk later.  That
> gets shmem regions as well as originally-regular files that were deleted
> while mapped.  I think we asked around when this test was put it and it was
> deemed proper at the time.  (It doesn't really need to be a formal "what
> does the vm situation mean" guarantee, just a practical "you probably
> wanted that" test.)

Exactly, a rough heuristic which seemed to approximate what the coredump
people wanted when it went into 2.6.12.  No absolute justification to it.

Hugh

      reply	other threads:[~2007-07-26 16:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-26  9:37 [PATCH] ELF core dump options Roland McGrath
2007-07-26 10:06 ` Andrew Morton
2007-07-26 11:39   ` Roland McGrath
2007-07-26 16:57     ` Hugh Dickins [this message]

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=Pine.LNX.4.64.0707261753030.370@blonde.wat.veritas.com \
    --to=hugh@veritas.com \
    --cc=akpm@linux-foundation.org \
    --cc=hidehiro.kawai.ez@hitachi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roland@redhat.com \
    --cc=torvalds@linux-foundation.org \
    /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