From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f179.google.com ([209.85.217.179]:48893 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751200AbaDORek (ORCPT ); Tue, 15 Apr 2014 13:34:40 -0400 Received: by mail-lb0-f179.google.com with SMTP id p9so7309677lbv.10 for ; Tue, 15 Apr 2014 10:34:39 -0700 (PDT) MIME-Version: 1.0 Reply-To: fdmanana@gmail.com In-Reply-To: <20140415172800.GD7901@wotan.suse.de> References: <1397580021-26598-1-git-send-email-fdmanana@gmail.com> <20140415172800.GD7901@wotan.suse.de> Date: Tue, 15 Apr 2014 18:34:38 +0100 Message-ID: Subject: Re: [PATCH 1/4] Btrfs: send, bump stream version From: Filipe David Manana To: Mark Fasheh Cc: "linux-btrfs@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-btrfs-owner@vger.kernel.org List-ID: On Tue, Apr 15, 2014 at 6:28 PM, Mark Fasheh wrote: > On Tue, Apr 15, 2014 at 05:40:18PM +0100, Filipe David Borba Manana wrote: >> This increases the send stream version from version 1 to version 2, adding >> 2 new commands: >> >> 1) total data size - used to tell the receiver how much file data the stream >> will add or update; >> >> 2) fallocate - used to pre-allocate space for files and to punch holes in files. >> >> This is preparation work for subsequent changes that implement the new features >> (computing total data size and use fallocate for better performance). > > Are these changes compatible with software using the old stream version? We > have snapshotting tools that are using send/recieve and it would be bad to > change the ABI in incompatible ways underneath them. > --Mark New versions of btrfs-progs (send stream v2 support) will still be able to read and process v1 streams. Older btrfs-progs (v1 only) won't be able to process the new commands. Does this answers your question Mark? > > -- > Mark Fasheh -- Filipe David Manana, "Reasonable men adapt themselves to the world. Unreasonable men adapt the world to themselves. That's why all progress depends on unreasonable men."