From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Williams Subject: Re: [PATCH v6 4/5] fs, xfs: introduce MAP_DIRECT for creating block-map-atomic file ranges Date: Thu, 24 Aug 2017 09:31:17 -0700 Message-ID: References: <150353211413.5039.5228914877418362329.stgit@dwillia2-desk3.amr.corp.intel.com> <150353213655.5039.7662200155640827407.stgit@dwillia2-desk3.amr.corp.intel.com> <20170824161152.GB27591@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170824161152.GB27591-jcswGhMUV9g@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org Sender: "Linux-nvdimm" To: Christoph Hellwig Cc: Jan Kara , "linux-nvdimm-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org" , Linux API , "Darrick J. Wong" , Dave Chinner , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , xen-devel-GuqFBffKawuEi8DpZVb4nw@public.gmane.org, linux-xfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Linux MM , Alexander Viro , Andy Lutomirski , linux-fsdevel , Andrew Morton List-Id: linux-api@vger.kernel.org [ adding Xen ] On Thu, Aug 24, 2017 at 9:11 AM, Christoph Hellwig wrote: > I still can't make any sense of this description. What is an external > agent? Userspace obviously can't ever see a change in the extent > map, so it can't be meant. External agent is a DMA device, or a hypervisor like Xen. In the DMA case perhaps we can use the fcntl lease mechanism, I'll investigate. In the Xen case it actually would need to use fiemap() to discover the physical addresses that back the file to setup their M2P tables. Here's the discussion where we discovered that physical address dependency: https://lists.xen.org/archives/html/xen-devel/2017-04/msg00419.html > It would help a lot if you could come up with a concrete user for this, > including example code. Will do.