From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([198.137.202.133]:43198 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbeINTAn (ORCPT ); Fri, 14 Sep 2018 15:00:43 -0400 Date: Fri, 14 Sep 2018 06:46:07 -0700 From: Christoph Hellwig Subject: Re: [PATCH] xfs: re-enable FIBMAP on reflink; disable for swap Message-ID: <20180914134607.GA6334@infradead.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-xfs-owner@vger.kernel.org List-ID: List-Id: xfs To: Eric Sandeen Cc: linux-xfs On Wed, Sep 12, 2018 at 08:55:35PM -0500, Eric Sandeen wrote: > The commit: > > db1327b1 xfs: report shared extent mappings to userspace correctly > > disabled FIBMAP on reflinked files, with this very clear rationale > regarding swapfiles: > > "Have xfs_vm_bmap return zero for reflinked files because the > bmap-based swap code requires static block mappings, which is > incompatible with copy on write." > > However, this broke the FIBMAP interface for existing userspace > apps, including bootloaders. It didn't break any interface because the reflink flag has been experimental and a mkfs-time opt in. So NAK for this patch.