Message ID | 148419039493.32674.9443275401625618997.stgit@birch.djwong.org (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
On Wed, Jan 11, 2017 at 07:06:34PM -0800, Darrick J. Wong wrote: > 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 <darrick.wong@oracle.com> Looks good, Reviewed-by: Christoph Hellwig <hch@lst.de> -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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 =
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 <darrick.wong@oracle.com> --- io/reflink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html