From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de ([213.95.11.211]:60154 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750881AbeEGMNZ (ORCPT ); Mon, 7 May 2018 08:13:25 -0400 Date: Mon, 7 May 2018 14:16:38 +0200 From: Christoph Hellwig To: Dave Chinner Cc: Goldwyn Rodrigues , Amir Goldstein , linux-fsdevel , Christoph Hellwig , Steve French , overlayfs , Anna Schumaker , "Darrick J. Wong" , Goldwyn Rodrigues Subject: Re: [PATCH 3/3] ovl: Use splice_with_holes in copy_up Message-ID: <20180507121638.GA27632@lst.de> References: <20180503152635.14974-1-rgoldwyn@suse.de> <20180503152635.14974-4-rgoldwyn@suse.de> <20180503221142.GC10363@dastard> <8317eac5-d305-4bbd-5d93-4fa6801c8b6a@suse.de> <20180505231641.GF10363@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180505231641.GF10363@dastard> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Sun, May 06, 2018 at 09:16:41AM +1000, Dave Chinner wrote: > > In the patchset description [0], I ask if this should be the default > > feature (I think it should be) and holes should be converted to zeros as > > a special flag.. The only argument against it could be that applications > > are already using this interface, so this would be a change in behavior. > > In general, we don't change the behaviour of syscalls after the > fact. We have flags to control behaviour, so applications that want > to preserve holes will just have to be changed to use that flag. copy_file_range isn't documented to either preserve or not preserve holes. And in fact it will preserve holes (or even create new ones) for any filesystem that implements it as a clone like btrfs or xfs..