From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from userp1040.oracle.com ([156.151.31.81]:39712 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751020AbdALDGj (ORCPT ); Wed, 11 Jan 2017 22:06:39 -0500 Subject: [PATCH 1/5] xfs_io: fix the minimum arguments to the reflink command From: "Darrick J. Wong" Date: Wed, 11 Jan 2017 19:06:34 -0800 Message-ID: <148419039493.32674.9443275401625618997.stgit@birch.djwong.org> In-Reply-To: <148419038856.32674.6479634718673149751.stgit@birch.djwong.org> References: <148419038856.32674.6479634718673149751.stgit@birch.djwong.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-xfs-owner@vger.kernel.org List-ID: List-Id: xfs To: sandeen@redhat.com, darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org The reflink command can reflink the entirety of two files if the offsets and lengths are not specified... but we forgot to permit that case. Signed-off-by: Darrick J. Wong --- io/reflink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/reflink.c b/io/reflink.c index a09e82d..d26cbdd 100644 --- a/io/reflink.c +++ b/io/reflink.c @@ -302,7 +302,7 @@ reflink_init(void) reflink_cmd.name = "reflink"; reflink_cmd.altname = "rl"; reflink_cmd.cfunc = reflink_f; - reflink_cmd.argmin = 4; + reflink_cmd.argmin = 1; reflink_cmd.argmax = -1; reflink_cmd.flags = CMD_NOMAP_OK | CMD_FOREIGN_OK; reflink_cmd.args =