Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp851338rwl; Wed, 5 Apr 2023 08:30:31 -0700 (PDT) X-Google-Smtp-Source: AKy350abuRZVIU2tFFQE8dqSZNnvUb9Y+6kP0wX/+d2tm+GHNrYEen3PocS3lmiEbw3iBLrlVzPr X-Received: by 2002:a50:ed8b:0:b0:502:9289:4728 with SMTP id h11-20020a50ed8b000000b0050292894728mr2157955edr.28.1680708630914; Wed, 05 Apr 2023 08:30:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680708630; cv=none; d=google.com; s=arc-20160816; b=Bq+I24KmvNoL8D0lkozeRB+QWbT81s+UR0NwUpHtKJaVmovLJsgrli0C5hUtnyoz5a 20ovJKqXQc/qNiDQ/9eNnF/ptkWrRnXRzP9Hd7F5jZSl6FIdNbPFa61mPQc6urvK8g7V t9GmqcUznh4WSvU9Ru4bpjHiRcJicyjzcoqHl2VKTtaO5k+knUiCsiVOto5c0KXwTXi8 8HRxMi5Es2fM9y0p7P5xa+ViJxV3xxFoJ8JWD2gi4v3dADx5q2z0JiFa/ZTeQPcpC632 PspbM4mprL7tQL1L/x/SkMp26SmU84n0ZtcgfVgXR+VYt9mQReewJPCMXUaCEgCZuyGk Qqmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id; bh=f8NaZLhL1XO35isAd2Vdppw/4pg0AYW6Ab6cbo/9Zbc=; b=pvYc6tdj/Cnl0jKHDUj9NKFmijdxTCQjUdvn7uKvWN9hJnGG55Z24DdwuBwXfisl1Z oBtfjnX9GAwawH+mk/NvI/h9S6ZboQ9eDe+ltJHBH0fUkmfpzv020RgFQI7KWUvaoqX7 axdrL3Qjk+CcYU2ezpMG7+HDeJz34kLZv7MRy4Lo33PNbVm3DRzflGAw8//dntImpVLz kWTDesyHwWFx9qFJLtOI474UZyrrVsU4QGn3Hz5xrSLgsq0w5RrYYUPMkJ2ubzV4dbBQ Ri5OcpL2neR8jMCz4zrJ8jUQAjnK9D01dGvr8yy4qG9hfhO5fVyPexd7WL7VQlYmTQye EL7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d8-20020aa7d5c8000000b0050224f8ea35si1598678eds.290.2023.04.05.08.30.03; Wed, 05 Apr 2023 08:30:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238181AbjDEP0t (ORCPT + 99 others); Wed, 5 Apr 2023 11:26:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231953AbjDEP0s (ORCPT ); Wed, 5 Apr 2023 11:26:48 -0400 X-Greylist: delayed 509 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 05 Apr 2023 08:26:47 PDT Received: from sandeen.net (sandeen.net [63.231.237.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 928AF8F; Wed, 5 Apr 2023 08:26:47 -0700 (PDT) Received: from [10.0.0.146] (liberator.sandeen.net [10.0.0.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by sandeen.net (Postfix) with ESMTPSA id D4AD84DCA1C; Wed, 5 Apr 2023 10:18:17 -0500 (CDT) Message-ID: Date: Wed, 5 Apr 2023 10:18:16 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Content-Language: en-US To: "Darrick J. Wong" , Andrey Albershteyn Cc: dchinner@redhat.com, ebiggers@kernel.org, hch@infradead.org, linux-xfs@vger.kernel.org, fsverity@lists.linux.dev, rpeterso@redhat.com, agruenba@redhat.com, xiang@kernel.org, chao@kernel.org, damien.lemoal@opensource.wdc.com, jth@kernel.org, linux-erofs@lists.ozlabs.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com References: <20230404145319.2057051-1-aalbersh@redhat.com> <20230404145319.2057051-21-aalbersh@redhat.com> <20230404162730.GB109974@frogsfrogsfrogs> From: Eric Sandeen Subject: Re: [PATCH v2 20/23] xfs: add fs-verity support In-Reply-To: <20230404162730.GB109974@frogsfrogsfrogs> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS 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: X-Mailing-List: linux-ext4@vger.kernel.org On 4/4/23 11:27 AM, Darrick J. Wong wrote: > diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c > index d40de32362b1..b6e99ed3b187 100644 > --- a/fs/xfs/xfs_super.c > +++ b/fs/xfs/xfs_super.c > @@ -30,6 +30,7 @@ > #include "xfs_filestream.h" > #include "xfs_quota.h" > #include "xfs_sysfs.h" > +#include "xfs_verity.h" > #include "xfs_ondisk.h" > #include "xfs_rmap_item.h" > #include "xfs_refcount_item.h" > @@ -1489,6 +1490,9 @@ xfs_fs_fill_super( > sb->s_quota_types = QTYPE_MASK_USR | QTYPE_MASK_GRP | QTYPE_MASK_PRJ; > #endif > sb->s_op = &xfs_super_operations; > +#ifdef CONFIG_FS_VERITY > + sb->s_vop = &xfs_verity_ops; > +#endif > Hi Andrey - it might be nicer to just do: fsverity_set_ops(sb, &xfs_verity_ops); here and use the (existing) helper to avoid the #ifdef. (the #ifdef is handled by the helper) (ext4 & btrfs could use this too ...) Thanks! -Eric