Re: btrfs: stat(2) and /proc/pid/maps returns different devices

2013-10-24 Thread Pavel Emelyanov
On 07/20/2013 12:51 AM, Mark Fasheh wrote: On Thu, Jul 11, 2013 at 12:26:50AM +0200, David Sterba wrote: On Wed, Jul 10, 2013 at 10:45:45AM -0700, Mark Fasheh wrote: Well, what do I get when I pretend I don't care any more? The little voice in my head says keep plugging away. Here's another

Re: btrfs: stat(2) and /proc/pid/maps returns different devices

2013-07-31 Thread David Sterba
On Fri, Jul 19, 2013 at 01:51:15PM -0700, Mark Fasheh wrote: Ok checking for the operation is definitely needed. I'll check for -getattr(). The rest of the stuff in our suse patch must have been added after my own commit. Do you know why this was added? Since this is all internal to proc I

Re: btrfs: stat(2) and /proc/pid/maps returns different devices

2013-07-19 Thread Mark Fasheh
On Thu, Jul 11, 2013 at 12:26:50AM +0200, David Sterba wrote: On Wed, Jul 10, 2013 at 10:45:45AM -0700, Mark Fasheh wrote: Well, what do I get when I pretend I don't care any more? The little voice in my head says keep plugging away. Here's another attempt at fixing this problem in a sane

Re: btrfs: stat(2) and /proc/pid/maps returns different devices

2013-07-11 Thread Andrew Vagin
On Wed, Jul 10, 2013 at 10:45:45AM -0700, Mark Fasheh wrote: On Wed, Jul 10, 2013 at 09:31:05AM -0700, Mark Fasheh wrote: As far as I can tell we'll be carrying this patch until a better solution is possible. When that will happen, I don't know. --Mark Well, what do I get when I

Re: btrfs: stat(2) and /proc/pid/maps returns different devices

2013-07-10 Thread Mark Fasheh
On Mon, Jul 08, 2013 at 11:54:46PM +0200, David Sterba wrote: On Thu, Jul 04, 2013 at 01:51:38PM +0400, Andrew Vagin wrote: We are not first who suffer from this problem: https://bugzilla.redhat.com/show_bug.cgi?id=711881 http://marc.info/?l=linux-btrfsm=130074451403261

Re: btrfs: stat(2) and /proc/pid/maps returns different devices

2013-07-10 Thread Mark Fasheh
On Wed, Jul 10, 2013 at 09:31:05AM -0700, Mark Fasheh wrote: As far as I can tell we'll be carrying this patch until a better solution is possible. When that will happen, I don't know. --Mark Well, what do I get when I pretend I don't care any more? The little voice in my head says

Re: btrfs: stat(2) and /proc/pid/maps returns different devices

2013-07-10 Thread David Sterba
On Wed, Jul 10, 2013 at 10:45:45AM -0700, Mark Fasheh wrote: Well, what do I get when I pretend I don't care any more? The little voice in my head says keep plugging away. Here's another attempt at fixing this problem in a sane manner. Basically, this time we're adding a flag to s_flags which

Re: btrfs: stat(2) and /proc/pid/maps returns different devices

2013-07-08 Thread David Sterba
On Thu, Jul 04, 2013 at 01:51:38PM +0400, Andrew Vagin wrote: We are not first who suffer from this problem: https://bugzilla.redhat.com/show_bug.cgi?id=711881 http://marc.info/?l=linux-btrfsm=130074451403261 https://bugzilla.openvz.org/show_bug.cgi?id=2653 And about 2 years ago Mark Fasheh

Re: btrfs: stat(2) and /proc/pid/maps returns different devices

2013-07-05 Thread Andrey Wagin
2013/7/4 Andrew Vagin ava...@gmail.com: Hi All, I want to resurrect an old problem. Currently stat(2) returns another device than other places where the device is printed (/proc/pid/maps, /proc/pid/fdinfo/, unix-diag). stat(2) reports devices, which is absent in /proc/pid/mountinfo. Hi