From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B32D3C4555; Fri, 2 Oct 2026 22:38:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790980697; cv=none; b=hGf69/wqcQJgYb3tmKKbzerm1EotiFnP5UVm98/RkzBwWimKUhoHaVLPY2pnbSWNG9vA0ab+Cg3Hz62dSerKEggRPeMEilD6EiDvmODKCDF6rPtiCrZuqpEufbUx1BfaBVCuU5IcH2d1ZUOOHOzqFHaPrxZJpy4I9t/OSO96rHE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790980697; c=relaxed/simple; bh=GoZafcVwYM13EDs2y2xw2tBf35tv1AhEEm1Y2K/M1NI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lLE61xGpJZha/ChCtjKpRmrQX2pHC9x96wfoKr/yE/TWF2Z+cOQn7kUMbCLgBIAp/C0UOd0IymGUCiO3woFwlA9mz3PQdQJ3BN06UKyoDzPuPsCkrC5WaXkNBsThiaHn+gx6AvQNAnZKrcBuAbdK557GZi4pt2n4K5FSUvhxeN0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H0wWX9iv; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="H0wWX9iv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 195DC1F000FF; Fri, 2 Oct 2026 22:38:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790980696; bh=bSv6TKlW4NbrjSEeVlXfAwkAliMrPUfKHonbv3D6dao=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=H0wWX9ivYxTyhCJGmh6b7cl5KdugmN9y7kixaF3pF3CuKALxTEITnlu6quHULbOJq rI+TBQ3p24lsFoZY2367W0bIXiZQiz4/vxm+TbMvRWwLWvUOtQK3m75gPhFmdhSNxl 66PHIYgEO1nHOw0ZIP//n2qbl6Z/Z5GVH3rrA6soTFEsSB7xpIGv2z8odxyoWs9wIp /1UlQiAbl5cJrmC8x6mtx8cQQilCHK+/jdZY8LPBdgboPXDGKAgJHiGehgi/50Uvrf jT7h3NOcdS0WRtbsZzuC97/QAE8PCq0zt3BG0Qz9kRzaN20ndr3yqMsB9egd6EK0eC pQ2ZrYbsFIA3g== From: Andrey Albershteyn To: djwong@kernel.org, ebiggers@kernel.org, hch@lst.de, Carlos Maiolino Cc: Andrey Albershteyn , fsverity@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-unionfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-btrfs@vger.kernel.org, david@fromorbit.com, Andrey Albershteyn Subject: [PATCH v17 18/21] xfs: advertise fs-verity being available on filesystem Date: Sat, 3 Oct 2026 00:36:59 +0200 Message-ID: <20261002223705.2175542-19-aalbersh@kernel.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261002223705.2175542-1-aalbersh@kernel.org> References: <20261002223705.2175542-1-aalbersh@kernel.org> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Darrick J. Wong" Advertise that this filesystem supports fsverity. Signed-off-by: Darrick J. Wong Reviewed-by: Andrey Albershteyn Reviewed-by: Christoph Hellwig Signed-off-by: Andrey Albershteyn --- fs/xfs/libxfs/xfs_fs.h | 1 + fs/xfs/libxfs/xfs_sb.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/fs/xfs/libxfs/xfs_fs.h b/fs/xfs/libxfs/xfs_fs.h index 185f09f327c0..c80133784419 100644 --- a/fs/xfs/libxfs/xfs_fs.h +++ b/fs/xfs/libxfs/xfs_fs.h @@ -250,6 +250,7 @@ typedef struct xfs_fsop_resblks { #define XFS_FSOP_GEOM_FLAGS_PARENT (1 << 25) /* linux parent pointers */ #define XFS_FSOP_GEOM_FLAGS_METADIR (1 << 26) /* metadata directories */ #define XFS_FSOP_GEOM_FLAGS_ZONED (1 << 27) /* zoned rt device */ +#define XFS_FSOP_GEOM_FLAGS_VERITY (1 << 28) /* fs-verity */ /* * Minimum and maximum sizes need for growth checks. diff --git a/fs/xfs/libxfs/xfs_sb.c b/fs/xfs/libxfs/xfs_sb.c index 985c7c6a09f2..fd06c3d6cc11 100644 --- a/fs/xfs/libxfs/xfs_sb.c +++ b/fs/xfs/libxfs/xfs_sb.c @@ -1587,6 +1587,8 @@ xfs_fs_geometry( geo->flags |= XFS_FSOP_GEOM_FLAGS_METADIR; if (xfs_has_zoned(mp)) geo->flags |= XFS_FSOP_GEOM_FLAGS_ZONED; + if (xfs_has_verity(mp)) + geo->flags |= XFS_FSOP_GEOM_FLAGS_VERITY; geo->rtsectsize = sbp->sb_blocksize; geo->dirblocksize = xfs_dir2_dirblock_bytes(sbp); -- 2.54.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0EF28CA5FE8 for ; Fri, 2 Oct 2026 22:38:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:Cc: Reply-To:From:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:References:In-Reply-To: Message-ID:Date:To:Sender:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=y0s5q0soJHMSTaSppUfbdLkoW01HJyAHslq369cAs20=; b=blrSof9dum9IPiYHXR5KeKK34U k78ohNDXu9Ceupc9Rx+dN3PP5rk5Gec483gPq6UypyrHs/azfYI7JXYWoEK/SJIuy1a9dgz8hwpES /3g+oh3SBKoIbiXioytIEyLJZY2s8aXu9WMmOE7BMICWYMpXLI7B8Hyk8G00AGq1k0hg=; Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1xClu1-0003k7-7o; Fri, 02 Oct 2026 22:38:53 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1xCltd-0003hY-6l for linux-f2fs-devel@lists.sourceforge.net; Fri, 02 Oct 2026 22:38:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bSv6TKlW4NbrjSEeVlXfAwkAliMrPUfKHonbv3D6dao=; b=l+zysFtIR7LUfhMW4SSlGEvgly bPyEoG4GoGfOJQD2LUKdWiZuDj1/ecDv2pGhV7goT+Pvyk+Ff0QXNql4vmiFxrp5j0bns8Je7s99Y leKtsvKhY2FiJqWC/I/NnqNLTLqErSQ8rKktHT//TSOmza+8b90QDNbVdWXN4fO5jQvI=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=bSv6TKlW4NbrjSEeVlXfAwkAliMrPUfKHonbv3D6dao=; b=NpVOnsf3ZR8oKYizHiXOqRLkD9 gNlqIfxyrZpnOCegPtKmUTI+ppzPFPNq5Ax+ufvX6EJN7kd5VFa4VOvx7OwgCE7r6CtqI1FGproXx cPYbgSQgd15r7GpNPlP0TNVNJV3twnmBZuMrSYKdRYjKYMcRgS7LPxziSamRVO2cIdzg=; Received: from sea.source.kernel.org ([172.234.252.31]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1xCltV-0006cG-O4 for linux-f2fs-devel@lists.sourceforge.net; Fri, 02 Oct 2026 22:38:25 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 6EC6244815; Fri, 2 Oct 2026 22:38:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 195DC1F000FF; Fri, 2 Oct 2026 22:38:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790980696; bh=bSv6TKlW4NbrjSEeVlXfAwkAliMrPUfKHonbv3D6dao=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=H0wWX9ivYxTyhCJGmh6b7cl5KdugmN9y7kixaF3pF3CuKALxTEITnlu6quHULbOJq rI+TBQ3p24lsFoZY2367W0bIXiZQiz4/vxm+TbMvRWwLWvUOtQK3m75gPhFmdhSNxl 66PHIYgEO1nHOw0ZIP//n2qbl6Z/Z5GVH3rrA6soTFEsSB7xpIGv2z8odxyoWs9wIp /1UlQiAbl5cJrmC8x6mtx8cQQilCHK+/jdZY8LPBdgboPXDGKAgJHiGehgi/50Uvrf jT7h3NOcdS0WRtbsZzuC97/QAE8PCq0zt3BG0Qz9kRzaN20ndr3yqMsB9egd6EK0eC pQ2ZrYbsFIA3g== To: djwong@kernel.org, ebiggers@kernel.org, hch@lst.de, Carlos Maiolino Date: Sat, 3 Oct 2026 00:36:59 +0200 Message-ID: <20261002223705.2175542-19-aalbersh@kernel.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261002223705.2175542-1-aalbersh@kernel.org> References: <20261002223705.2175542-1-aalbersh@kernel.org> MIME-Version: 1.0 X-Headers-End: 1xCltV-0006cG-O4 Subject: [f2fs-dev] [PATCH v17 18/21] xfs: advertise fs-verity being available on filesystem X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrey Albershteyn via Linux-f2fs-devel Reply-To: Andrey Albershteyn Cc: fsverity@lists.linux.dev, Andrey Albershteyn , Andrey Albershteyn , david@fromorbit.com, linux-unionfs@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-btrfs@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net From: "Darrick J. Wong" Advertise that this filesystem supports fsverity. Signed-off-by: Darrick J. Wong Reviewed-by: Andrey Albershteyn Reviewed-by: Christoph Hellwig Signed-off-by: Andrey Albershteyn --- fs/xfs/libxfs/xfs_fs.h | 1 + fs/xfs/libxfs/xfs_sb.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/fs/xfs/libxfs/xfs_fs.h b/fs/xfs/libxfs/xfs_fs.h index 185f09f327c0..c80133784419 100644 --- a/fs/xfs/libxfs/xfs_fs.h +++ b/fs/xfs/libxfs/xfs_fs.h @@ -250,6 +250,7 @@ typedef struct xfs_fsop_resblks { #define XFS_FSOP_GEOM_FLAGS_PARENT (1 << 25) /* linux parent pointers */ #define XFS_FSOP_GEOM_FLAGS_METADIR (1 << 26) /* metadata directories */ #define XFS_FSOP_GEOM_FLAGS_ZONED (1 << 27) /* zoned rt device */ +#define XFS_FSOP_GEOM_FLAGS_VERITY (1 << 28) /* fs-verity */ /* * Minimum and maximum sizes need for growth checks. diff --git a/fs/xfs/libxfs/xfs_sb.c b/fs/xfs/libxfs/xfs_sb.c index 985c7c6a09f2..fd06c3d6cc11 100644 --- a/fs/xfs/libxfs/xfs_sb.c +++ b/fs/xfs/libxfs/xfs_sb.c @@ -1587,6 +1587,8 @@ xfs_fs_geometry( geo->flags |= XFS_FSOP_GEOM_FLAGS_METADIR; if (xfs_has_zoned(mp)) geo->flags |= XFS_FSOP_GEOM_FLAGS_ZONED; + if (xfs_has_verity(mp)) + geo->flags |= XFS_FSOP_GEOM_FLAGS_VERITY; geo->rtsectsize = sbp->sb_blocksize; geo->dirblocksize = xfs_dir2_dirblock_bytes(sbp); -- 2.54.0 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel