All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Satoru Takeuchi <satoru.takeuchi@gmail.com>
Cc: linux-btrfs <linux-btrfs@vger.kernel.org>,
	Mark Fasheh <mfasheh@suse.de>, David Sterba <dsterba@suse.com>
Subject: Re: [PATCH] fix inconsistent device between /proc/pid/maps and stat
Date: Fri, 24 Mar 2017 12:58:59 +0100	[thread overview]
Message-ID: <20170324115859.GN14605@twin.jikos.cz> (raw)
In-Reply-To: <871strcs56.wl-satoru.takeuchi@gmail.com>

On Tue, Mar 21, 2017 at 10:53:09AM +0900, Satoru Takeuchi wrote:
> There have been some discussions about inconsistent device between /proc/pid/maps and stat(2).
> 
> http://thr3ads.net/btrfs-devel/2011/05/2346176-RFC-PATCH-0-2-btrfs-vfs-Return-same-device-in-stat-2-and-proc-pid-maps
> https://www.spinics.net/lists/linux-btrfs/msg09044.html
> https://patchwork.kernel.org/patch/2825842/
> https://patchwork.kernel.org/patch/2831525/
> 
> It's important since it breaks user programs like lsof(8). There was a patche by Mark to fix this problem.
> However, unfortunately, that patch is not merged so far.

And no variant of the get_map_dev will ever be merged. Reworking this
requires extensions to the superblock and subvolume structures, making
it more generic and suitable for VFS.

  reply	other threads:[~2017-03-24 12:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-21  1:53 [PATCH] fix inconsistent device between /proc/pid/maps and stat Satoru Takeuchi
2017-03-24 11:58 ` David Sterba [this message]
2017-03-24 13:32   ` Satoru Takeuchi
2017-03-24 17:29 Hirotaka Yamamoto

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=20170324115859.GN14605@twin.jikos.cz \
    --to=dsterba@suse.cz \
    --cc=dsterba@suse.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=mfasheh@suse.de \
    --cc=satoru.takeuchi@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.