Message ID | 20221122021536.1629178-3-drosen@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1956413wrr; Mon, 21 Nov 2022 18:18:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Tu+g9GTSxvN1vwZ4bR9QJ5EcSxS+gjBaYOu12AiP28na5uP2+wc438khOlUqF/WCWjuYN X-Received: by 2002:a63:f95a:0:b0:46f:5be0:feb9 with SMTP id q26-20020a63f95a000000b0046f5be0feb9mr19858227pgk.485.1669083487060; Mon, 21 Nov 2022 18:18:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669083487; cv=none; d=google.com; s=arc-20160816; b=HDnrKgbXaUPlq3Wv5Ni6EgLl3UrLkSUEQR3D5+RVkJvR0O8fyRNbr+nBtDZ6VYfgit yK/1TCJCwyqP3b7aPat775BT9qQxkdIycuyKDQvNmn3wt4V+EhKdPpl7VFwi1aOT0z4a yXvil8okF38HtFojrmLdphXHBQSBVmC2eEFGMkOtjmmW0ehEh9Wk/rjNaFFA8LOXXHNC ctIK1PjBBa2++UfnkW+pf5/oVyeEUPdatVhWCP7uZJQj4tA0868MQ50IpyyWQdRze0KV C3TWhVM5r2dQ7lOpQhUMv9DuT4VJLJHA2f8umKFc8jl5V9zuvsuBHLIbwqg8P5AYDl+Q kMdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=Y0CYFA8id+z3HCWs5kIS2LaBGk6W/Uf1gWskynavTxc=; b=RUBcid/cKajtkKzSOVIbpYtaf5I9Lzdwuk51+CtiRNMfKHqjlnWJ5OBW3ONWbM3o+O 2DEEgu9LBWiTFXB8jzeKmSN7pfFYz+2+UUfCyt0BRfH0RBaRZc3n4KAwy3ZrKTTFvcU2 TlWB3I+k7YYnE+NW6ytY1QdNFifLQaNVALMaktwaiDrIB8QnKoOLJQGQ87ugQTSqt72L 1APj6nuOv+GFV5h7hgGEhRXGBqv2NdK5lxygYLIDl/0vY0FP5/45bVmtazl1L5teuxOa QEhvMjkAU6PpVHgq6GxEeTJcnsItVqaqA22IyNblWaTL+b0OCrwOtE3YGvcrGWyJ+63H Wxvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ShxBlDIA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q10-20020a056a00150a00b0056bce3dfaa8si13510030pfu.27.2022.11.21.18.17.54; Mon, 21 Nov 2022 18:18:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ShxBlDIA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232494AbiKVCQJ (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Mon, 21 Nov 2022 21:16:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbiKVCQA (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 21 Nov 2022 21:16:00 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F417E0CB1 for <linux-kernel@vger.kernel.org>; Mon, 21 Nov 2022 18:15:59 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id p188-20020a2542c5000000b006ea37a57e20so6626442yba.13 for <linux-kernel@vger.kernel.org>; Mon, 21 Nov 2022 18:15:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=Y0CYFA8id+z3HCWs5kIS2LaBGk6W/Uf1gWskynavTxc=; b=ShxBlDIAwmGqs4fi1P8OTQDitIxkzNdyy6obpBx2DiuBICfglgIm/sEJ56k72mcrDk 7sLoBmC3BCBKNBVTw+a5yisI9f+LbrX/R2U/hPfRfpMyfdvSp6UftfpxF8ptuAxhR1Mc QGRV0dQNmsWkVelI+ut+E9YXVVVey/xFndnaY0+7hsgFk0UClNwfx7uB/GiuIE3WJxKQ 1tWaQL+uuqyCVQsmD7uv1PiRFexy5YwGgOZ9H2D50koMDi22pO5sT5Kyfhs1JNRKiAwl aIbAYznQ2PAOlxao5zbdAc37GRH4JJZVovarG4GlgWKkZq84useB0vbbhW6mKS1ak4Gp rFrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Y0CYFA8id+z3HCWs5kIS2LaBGk6W/Uf1gWskynavTxc=; b=0YJrh+fJUK80RUQQRLdK5HHb0WJsSJbZxaTN9q2k1W8qMHFuht8ED4YEZENLbBQzPQ Cg9CMyin/TDv55BmrIEDt+rmlre0IQ06f7vveMiinOH3TO+oijYj1Tc7JRxAudr2Byi0 z5BVE6iPolBeKPyeMLqG3cQiKPAZAmlzRl2dzgnB51qRypY6mU7FGocYE/25LRdyk5U+ 1x1R1rtLZ3DbQxG4Fvi026XEQA155cI/fS9E7OtwPDfCQTCxhcWVkMv5O1Carvv0Cg8J 8bcfOBYP4NuxO3kE6eWhORjc0tbDFt3tZiF+PNAofVZ0yqK9wRMQsFN9ftU7vOGvKIrO DdZA== X-Gm-Message-State: ANoB5pm3Rzhefk+Xwqb5KJw9h9lKnu0EWhAwxhIppjdoD94Ujt4E4MUr QRoZjrTBf7e+iZmApXtVAtmpSFpVx4g= X-Received: from drosen.mtv.corp.google.com ([2620:15c:211:200:8539:aadd:13be:6e82]) (user=drosen job=sendgmr) by 2002:a81:994a:0:b0:36f:d061:dfcd with SMTP id q71-20020a81994a000000b0036fd061dfcdmr1364844ywg.188.1669083358500; Mon, 21 Nov 2022 18:15:58 -0800 (PST) Date: Mon, 21 Nov 2022 18:15:17 -0800 In-Reply-To: <20221122021536.1629178-1-drosen@google.com> Mime-Version: 1.0 References: <20221122021536.1629178-1-drosen@google.com> X-Mailer: git-send-email 2.38.1.584.g0f3c55d4c2-goog Message-ID: <20221122021536.1629178-3-drosen@google.com> Subject: [RFC PATCH v2 02/21] fuse-bpf: Update fuse side uapi From: Daniel Rosenberg <drosen@google.com> To: Miklos Szeredi <miklos@szeredi.hu> Cc: Amir Goldstein <amir73il@gmail.com>, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org, bpf@vger.kernel.org, kernel-team@android.com, Daniel Rosenberg <drosen@google.com>, Paul Lawrence <paullawrence@google.com> Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750160886643595740?= X-GMAIL-MSGID: =?utf-8?q?1750160886643595740?= |
Series |
FUSE BPF: A Stacked Filesystem Extension for FUSE
|
|
Commit Message
Daniel Rosenberg
Nov. 22, 2022, 2:15 a.m. UTC
Adds structures which will be used to inform fuse about what it is being stacked on top of. Once filters are in place, error_in will inform the post filter if the backing call returned an error. Signed-off-by: Daniel Rosenberg <drosen@google.com> Signed-off-by: Paul Lawrence <paullawrence@google.com> --- include/uapi/linux/fuse.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/include/uapi/linux/fuse.h b/include/uapi/linux/fuse.h index 76ee8f9e024a..0e19076729d9 100644 --- a/include/uapi/linux/fuse.h +++ b/include/uapi/linux/fuse.h @@ -576,6 +576,21 @@ struct fuse_entry_out { struct fuse_attr attr; }; +#define FUSE_BPF_MAX_ENTRIES 2 + +enum fuse_bpf_type { + FUSE_ENTRY_BACKING = 1, + FUSE_ENTRY_BPF = 2, + FUSE_ENTRY_REMOVE_BACKING = 3, + FUSE_ENTRY_REMOVE_BPF = 4, +}; + +struct fuse_bpf_entry_out { + uint32_t entry_type; + uint32_t unused; + uint64_t fd; +}; + struct fuse_forget_in { uint64_t nlookup; }; @@ -874,7 +889,7 @@ struct fuse_in_header { uint32_t uid; uint32_t gid; uint32_t pid; - uint32_t padding; + uint32_t error_in; }; struct fuse_out_header {