From patchwork Wed Nov 18 19:18:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Omar Sandoval X-Patchwork-Id: 11915733 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DCDBFC71156 for ; Wed, 18 Nov 2020 19:19:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 437022220B for ; Wed, 18 Nov 2020 19:19:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=osandov-com.20150623.gappssmtp.com header.i=@osandov-com.20150623.gappssmtp.com header.b="ghXL55lm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727317AbgKRTTb (ORCPT ); Wed, 18 Nov 2020 14:19:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726416AbgKRTT1 (ORCPT ); Wed, 18 Nov 2020 14:19:27 -0500 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9657BC061A48 for ; Wed, 18 Nov 2020 11:19:27 -0800 (PST) Received: by mail-pl1-x642.google.com with SMTP id l11so1547784plt.1 for ; Wed, 18 Nov 2020 11:19:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ng3S9jzsXHM6uNgh/DWKZS8UtOoWwHqg6ejAsiMq32A=; b=ghXL55lmpcFLzMg1nP3mlUyrBZxvH+ykIs6DIk6t7TYvxlGVJWgrlxAZcwD3H0QORm tPEtf2etlYrGH0QngZgiL6IcJTagyjpXq/i+i4xTm9u5fEiUHSo35CKhcSX+zwej+5tu Iqm8UuETnJbAuyvlBmbDHkLlnKqFOEoqZWNaykZRbFvG4RmU8NZIqXw8MpI6KbL7ztn6 EHChq/+phTmop66ocDCq8gR9uEq6oW8OXF08gl25T8fy88ZqjjHToav8gUi1dy3KoyvC UzPyjS6bHmSl4mC+rayGkLJulTr/tUNB/LITuvW506Gg/2NAUl6tRx+bztPwTM2XwUDa NWXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ng3S9jzsXHM6uNgh/DWKZS8UtOoWwHqg6ejAsiMq32A=; b=desSIry54QvSbOhULdeif5nI9J+kcspaz0IAb6glTPGoyXYwTADGlotM+p9yd0iW0G +cppwgPN0FKJC5q0L4/bIHajNMVYpHuCZ8xyeLREiKrl0ZlsBx1KVLgkPkZYkqdQXiLR QeoCmQ4ceCjJ8fKvCgrFsTgAWxruDZn+PueODUc5MtLMd03p3mGKXbwbFbCE5WI6UOAZ Xiaj8eaO5FEZa6yTGY9UAL2LSg10VoTh1oqrlnoEAMSY20SxIFsdcAZ2ILfPmhv2kjJl +f0vFaf6f8GeXO47pA3BJejamskJw4dvyBKxR6xNkRi4XGz89u4AAmrRYU++Sn70pbeY woyA== X-Gm-Message-State: AOAM53089PCpir80E70XbD/0a8Y6ybwPBivf2yiz3f5yhhcJfqR25jc8 apGd/GILa30rH+nR59GZ9Uqtimn0gXOuGA== X-Google-Smtp-Source: ABdhPJyJSSBXpWt2egYFPP8WmVBzm0RRl48D0NpL29atIM2xMxu2lspygQV3KZ7xzLqMfUV1Uuh4hA== X-Received: by 2002:a17:902:c393:b029:d9:6e7:6787 with SMTP id g19-20020a170902c393b02900d906e76787mr5682353plg.78.1605727166485; Wed, 18 Nov 2020 11:19:26 -0800 (PST) Received: from relinquished.tfbnw.net ([2620:10d:c090:400::5:8b43]) by smtp.gmail.com with ESMTPSA id l9sm3197221pjy.10.2020.11.18.11.19.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2020 11:19:25 -0800 (PST) From: Omar Sandoval To: linux-btrfs@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, kernel-team@fb.com Subject: [PATCH v2 05/13] btrfs-progs: receive: add send stream v2 cmds and attrs to send.h Date: Wed, 18 Nov 2020 11:18:51 -0800 Message-Id: <8495f1c759ae6fc3002cb5d9309d206a6e6f0906.1605723745.git.osandov@osandov.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org From: Boris Burkov Send stream v2 adds three commands and several attributes associated to those commands. Before we implement processing them, add all the commands and attributes. This avoids leaving the enums in an intermediate state that doesn't correspond to any version of send stream. Signed-off-by: Boris Burkov --- send.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/send.h b/send.h index 228928a0..3c47e0c7 100644 --- a/send.h +++ b/send.h @@ -98,6 +98,11 @@ enum btrfs_send_cmd { BTRFS_SEND_C_END, BTRFS_SEND_C_UPDATE_EXTENT, + + BTRFS_SEND_C_FALLOCATE, + BTRFS_SEND_C_SETFLAGS, + BTRFS_SEND_C_ENCODED_WRITE, + __BTRFS_SEND_C_MAX, }; #define BTRFS_SEND_C_MAX (__BTRFS_SEND_C_MAX - 1) @@ -136,6 +141,16 @@ enum { BTRFS_SEND_A_CLONE_OFFSET, BTRFS_SEND_A_CLONE_LEN, + BTRFS_SEND_A_FALLOCATE_MODE, + + BTRFS_SEND_A_SETFLAGS_FLAGS, + + BTRFS_SEND_A_UNENCODED_FILE_LEN, + BTRFS_SEND_A_UNENCODED_LEN, + BTRFS_SEND_A_UNENCODED_OFFSET, + BTRFS_SEND_A_COMPRESSION, + BTRFS_SEND_A_ENCRYPTION, + __BTRFS_SEND_A_MAX, }; #define BTRFS_SEND_A_MAX (__BTRFS_SEND_A_MAX - 1)