From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw0-f176.google.com ([209.85.161.176]:35519 "EHLO mail-yw0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753543AbeEJErn (ORCPT ); Thu, 10 May 2018 00:47:43 -0400 MIME-Version: 1.0 In-Reply-To: <20180510015820.17700-1-rgoldwyn@suse.de> References: <20180510015820.17700-1-rgoldwyn@suse.de> From: Amir Goldstein Date: Thu, 10 May 2018 07:47:42 +0300 Message-ID: Subject: Re: [PATCH v2 0/4] Enable holes in copy_file_range() To: Goldwyn Rodrigues Cc: linux-fsdevel , Christoph Hellwig , overlayfs , Dave Chinner , Al Viro , Anna Schumaker Content-Type: text/plain; charset="UTF-8" Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, May 10, 2018 at 4:58 AM, Goldwyn Rodrigues wrote: > If copy_file_range performs a copy using splice, it converts holes > to zeros. This effort primarily changes this behavior to create > holes when it is possible. > > Even if copy_file_range() or clone_file_range() does not work for different > mounted filesystems, We should be able to splice files if they do not > belong the same super_block. > > Changes since v1: > - Fixed bug when hole/data offset is farther than len Please specify how you tested this work. Did you run the xfstests generic/copy tests that Anna wrote? If the tests caught your bugs - good, if they didn't, please write more tests to cover the issues you found. One thing I do not see in the existing tests is coverage for the trivial case of "only holes" (i.e. touch x; truncate -s 10 x). Thanks, Amir.