| Message ID | 20260520123722.405752-20-aalbersh@kernel.org |
|---|---|
| State | Not Applicable |
| Headers | show
Return-Path: <SRS0=1i9o=DR=vger.kernel.org=linux-ext4+bounces-16610-patchwork-incoming=ozlabs.org@ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=A21DPI5Y; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org; envelope-from=srs0=1i9o=dr=vger.kernel.org=linux-ext4+bounces-16610-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4gLBCV75ZQz1xx5 for <incoming@patchwork.ozlabs.org>; Wed, 20 May 2026 22:47:50 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4gLBCV6dWvz58xl for <incoming@patchwork.ozlabs.org>; Wed, 20 May 2026 22:47:50 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4gLBCV6Yhrz58xn; Wed, 20 May 2026 22:47:50 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip=172.105.105.114 arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1779281270; cv=pass; b=NHp9TNWIYz4iMn4VJODujaC5MB+HQ8SAHK7wcOuA2BttEVA5p/I6XlJr3dow04eJqfeqbyW/gpfNLE4saFGKR8juoM+AUFvjIjna4ebtu+C91JXT6riHc9HcBI25iWvWdK0K/3jm1J+es33t93YAXQ3I+5wFsLQs0tgPCWyNAMspGiBV8ckuW8S99mB0hQCJs/cjYTa5qmzAihmbdyrx94cnMa1sxrziE8YSMW8gtsWJypqmJe3WOpDZyezlcTqKaT/ob/p1dn/zsPi3K4OdEiWSnFPLcuBmMtHr13/Zk7DvHLDM2CQz5xod8+cf8wNZgZprau1/J6i5EjnDkRdd4g== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1779281270; c=relaxed/relaxed; bh=mfyAjF/CmUTJWYFj5Klp/BtXlNLH5opRVJLFuVtT+eY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=p5wcdTWdzpnRIDSmGbUKFVUghTmMFnBeNPm2F6XZ5bLJ3iOF9/O/oFgnnWslBlRK8IGwTWJ2VIEvKn9M+2v2c4N/VnkWRQ4nR5jtxe+uGH2d8GCWg7GAq7U5/Qf/tLVPP4/1dM1lJegu1wiO28cUu7yMU+v5ClPVTlh3MmrWWjo0twa2qgPPUKmC67KOm/2hcif/tyf+HgXjxq0FVZABoRFufEDdE+mTz02L4zp/h46j8qm7SISVwUZShnILq2bQGbu9LiREC72oFgIAEp2ZtmtUa/2u8nCMdECE0KMRljoOXrkYya3/nGiDM7lG9cbU46EeWNKDcodxbKwyTTu1xQ== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=A21DPI5Y; dkim-atps=neutral; spf=pass (client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=linux-ext4+bounces-16610-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: gandalf.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=A21DPI5Y; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=linux-ext4+bounces-16610-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4gLBCR56TFz58xl for <patchwork-incoming@ozlabs.org>; Wed, 20 May 2026 22:47:47 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 57B273125C35 for <patchwork-incoming@ozlabs.org>; Wed, 20 May 2026 12:39:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F8983EAC74; Wed, 20 May 2026 12:38:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="A21DPI5Y" X-Original-To: linux-ext4@vger.kernel.org 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 44FF13E3170; Wed, 20 May 2026 12:38:15 +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=1779280696; cv=none; b=uMIHnQfqWGyDtbk/Fzs2P+oRY062JYXFASazszj5T/fZNnqT/mMYhNxFmS1AmgUhnrYk6WPxecO39I52mZDswi2WZMvZIfKSMx6AVJsXq/BsdXNM58LCsnYsZGAG+Ufo5/AmDvZj9PuAsN4n13Gmi/g6VMCzJz139rI2SnsNVRU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779280696; c=relaxed/simple; bh=RpmGdpK19RQWoIgTFdViqQtD9XKbSGy/qb0W7trms+Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mk9EwUakCCta3KxkOvf+dPHY5Awy+kHgQkMz/gxr8J360WNAE3935lYAfpAD+bOFQ0nytD1Yp2/IxY/THCWvVKD1U7oMJULe16wF59ooa75yoPELd7GPOX0daRW7CsF5LhZR9dTvTVmKlOLXj7+IglhxMNuqYHDaIcOxfbu07xA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=A21DPI5Y; arc=none smtp.client-ip=100.103.45.18 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 013EF1F000E9; Wed, 20 May 2026 12:38:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1779280695; bh=mfyAjF/CmUTJWYFj5Klp/BtXlNLH5opRVJLFuVtT+eY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=A21DPI5YQPBuVhDAVnIzMTuK4VVJioBQZQbdzkFplNnvjXl1IdzDB+o9R1PPQlBNz 7g8/lFEIBkRh1a6xvzMb5IGIOhi+khVCZ3ybEow1bA5QnNjV6dUJqO3Q/mBdFM82oh ApC90tVdO/St9SPZTWxaAfaOilZG958BjvdOYD68Z+reXkNRx0IjE62B2Gu4FZpZhb RdWUPdO8jU/f5ispiHdf1hRYzHsBYDv1zw/wlHtCxzwbQYag/XZbnYFpwKGWdT7Srg UKTJ8gnR9Y2C+kK4uhPNWounxXavpMnYDhityc3XFreEujy7pnyGcY4OaWx7wSuBFc TM7pIboETB3eg== From: Andrey Albershteyn <aalbersh@kernel.org> To: linux-xfs@vger.kernel.org, fsverity@lists.linux.dev, linux-fsdevel@vger.kernel.org, ebiggers@kernel.org Cc: "Darrick J. Wong" <djwong@kernel.org>, hch@lst.de, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-btrfs@vger.kernel.org, linux-unionfs@vger.kernel.org, Andrey Albershteyn <aalbersh@redhat.com>, Andrey Albershteyn <aalbersh@kernel.org> Subject: [PATCH v10 19/22] xfs: advertise fs-verity being available on filesystem Date: Wed, 20 May 2026 14:37:17 +0200 Message-ID: <20260520123722.405752-20-aalbersh@kernel.org> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20260520123722.405752-1-aalbersh@kernel.org> References: <20260520123722.405752-1-aalbersh@kernel.org> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: <linux-ext4.vger.kernel.org> List-Subscribe: <mailto:linux-ext4+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-ext4+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org |
| Series |
fs-verity support for XFS with post EOF merkle tree
|
expand
|
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 a15510ebd2f1..222bbe5559df 100644 --- a/fs/xfs/libxfs/xfs_sb.c +++ b/fs/xfs/libxfs/xfs_sb.c @@ -1590,6 +1590,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);