From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [patch 2/2] fs, proc: Introduce the /proc//map_files/ directory v6 Date: Fri, 2 Sep 2011 11:29:57 +0900 Message-ID: <20110902022957.GH2752@htj.dyndns.org> References: <20110831075814.003575573@openvz.org> <20110831080229.100652529@openvz.org> <4E603758.6050003@gmail.com> <20110902015807.GG2752@htj.dyndns.org> <4E6039BA.1010805@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Cyrill Gorcunov , containers@lists.osdl.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Nathan Lynch , Oren Laadan , Daniel Lezcano , Glauber Costa , James Bottomley , Vasiliy Kulikov , "Kirill A. Shutemov" , Alexey Dobriyan , Al Viro , Andrew Morton , Pavel Emelyanov To: Nicholas Miell Return-path: Content-Disposition: inline In-Reply-To: <4E6039BA.1010805@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hello, On Thu, Sep 01, 2011 at 07:04:42PM -0700, Nicholas Miell wrote: > So are the filenames in /proc/$PID/map_files/ guaranteed to be identical > to the first field (first two fields? the part before the first space) > in /proc/$PID/maps? Yeap, naturally. > When I open a file in /proc/$PID/map_files/, is offset 0 the start of > the file on disk or is it the first byte of the mapping? It shows the same backing file so of course uses the same offset as the file on disk. Thanks. -- tejun