Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp465122pxb; Wed, 24 Feb 2021 06:55:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzS49hlkjTpwZSuVpItpAGlNum1vrZ0GIZpvU36+HLjSzNtl0EGc1oEutBuNXNkRJqxpKk3 X-Received: by 2002:aa7:dacc:: with SMTP id x12mr31139712eds.98.1614178552273; Wed, 24 Feb 2021 06:55:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614178552; cv=none; d=google.com; s=arc-20160816; b=jnbJsBAoTQjZ6kTFqB8zQpl18naVILR3GUXKLKhAizXR9V8aMbyGHN5e6utTDKxwR0 zk2GzoYHdt9canntK2XWZbZ7dmTkG27JrePqU818n2F/rpVaYgia3InT72ZgqIRB4OkE JWgnTDAij2M+XAUFbbN5O5n8pV9nxkkKrc8kcUbbkWE1nKPbm9p9CI3HnCaFi53zLSiq UraWcJE+NxYHn1KDd3kC+g/e63jBO75U4dGs7l8cl6ZFa0PBl3ui/RNIMtOGoXQkMc79 5dGAqe4Y/lLzW45NAfoQGMfj9BLdxAN/f1EWGb7js3KVL2sahTZvxI6sFh+VBLnwcAYi jFjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=SxeH3Z3QYnzNDMxy77qjbmRoancgk++Z2XO041ws0oU=; b=o2E80ECgxbIU23XcyAZEWFhMM7YdiVh/M2i6Iq5KEUhoe9louWX9BeuGV7uNZ+w/wG hCzUYcE1nFI10brw2UZ5RrXxbUeFI3AmeH4LWrDJDqeEjMUisv1LOqwSS8sdnaeXjx1J Zd9qxzASVkIiOPxgro38SbskCX/nJgv3ojZ+wUfvPTb8cTNunaO83kHLS836BEneoKUF 1GA7WnO/xH6h8ByFEinVhxbsUXzeyxQWnr9rbelF76qmUXwgAqeBG/LAS+AvBsRJWRis 7kKt+B77L0Z/x9R7Q+j1AX6pKeBMcaA2/VRtUmOnmP6ugJr70FJ1VPoEJr5quhZdUwy6 zXXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lr3si1428033ejb.514.2021.02.24.06.55.28; Wed, 24 Feb 2021 06:55:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234114AbhBXOnO (ORCPT + 99 others); Wed, 24 Feb 2021 09:43:14 -0500 Received: from mx2.suse.de ([195.135.220.15]:33460 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236564AbhBXOW6 (ORCPT ); Wed, 24 Feb 2021 09:22:58 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 99E5BADCD; Wed, 24 Feb 2021 14:22:04 +0000 (UTC) Received: from localhost (brahms [local]) by brahms (OpenSMTPD) with ESMTPA id 1f03fb81; Wed, 24 Feb 2021 14:23:09 +0000 (UTC) From: Luis Henriques To: Alejandro Colomar , Michael Kerrisk , Amir Goldstein , Jeff Layton , Steve French , Miklos Szeredi , Trond Myklebust , Anna Schumaker , Alexander Viro , "Darrick J. Wong" , Dave Chinner , Greg KH , Nicolas Boichat , Ian Lance Taylor , Luis Lozano , Andreas Dilger , Olga Kornievskaia , Christoph Hellwig Cc: ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-man@vger.kernel.org, Luis Henriques Subject: [PATCH] copy_file_range.2: Kernel v5.12 updates Date: Wed, 24 Feb 2021 14:23:07 +0000 Message-Id: <20210224142307.7284-1-lhenriques@suse.de> In-Reply-To: <20210222102456.6692-1-lhenriques@suse.de> References: <20210222102456.6692-1-lhenriques@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Update man-page with recent changes to this syscall. Signed-off-by: Luis Henriques --- Hi! Here's a suggestion for fixing the manpage for copy_file_range(). Note that I've assumed the fix will hit 5.12. man2/copy_file_range.2 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/man2/copy_file_range.2 b/man2/copy_file_range.2 index 611a39b8026b..b0fd85e2631e 100644 --- a/man2/copy_file_range.2 +++ b/man2/copy_file_range.2 @@ -169,6 +169,9 @@ Out of memory. .B ENOSPC There is not enough space on the target filesystem to complete the copy. .TP +.B EOPNOTSUPP +The filesystem does not support this operation. +.TP .B EOVERFLOW The requested source or destination range is too large to represent in the specified data types. @@ -187,7 +190,7 @@ refers to an active swap file. .B EXDEV The files referred to by .IR fd_in " and " fd_out -are not on the same mounted filesystem (pre Linux 5.3). +are not on the same mounted filesystem (pre Linux 5.3 and post Linux 5.12). .SH VERSIONS The .BR copy_file_range () @@ -202,6 +205,11 @@ Applications should target the behaviour and requirements of 5.3 kernels. .PP First support for cross-filesystem copies was introduced in Linux 5.3. Older kernels will return -EXDEV when cross-filesystem copies are attempted. +.PP +After Linux 5.12, support for copies between different filesystems was dropped. +However, individual filesystems may still provide +.BR copy_file_range () +implementations that allow copies across different devices. .SH CONFORMING TO The .BR copy_file_range ()