From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 29FA7364E82; Mon, 9 Mar 2026 19:25:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773084327; cv=none; b=pgS0/TveOCAt0zC3vaKtKodd7oorFqkjLcM+Ou/Hzhtpm3iZqGY8WkSqi+ChLUtJTprPmE+YGgimc8xBiD8NwyKT6suCORiI+IEA6Ios+1ZrAvyimuAFcDBQ8CweRNeZUCMNSxpQ+AKqTVoPhCzuZ8iF6VLMkMiS9O0v0sutRfs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773084327; c=relaxed/simple; bh=xU2KCI35YrXRPX4STuuSkp2XrYakE+gfhJ6nDK7xPhI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tOoGhG/apVV/+iDofAt6cMFwmVtS+ObGLRkKj9xbEE2oTVyQux8CJTZLV2UG6Ab3WEfOGDV3DscQFBFiXmbeSfRnVmtXJL1r36P0NePGOBPzffVL1x/PFgYOzbUeq8onqEAJMV/2jGHL3OrcAF2uTvXab1Zl7LPOTVO+7c/TScA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HcvFft2J; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HcvFft2J" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1F10C2BC87; Mon, 9 Mar 2026 19:25:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773084326; bh=xU2KCI35YrXRPX4STuuSkp2XrYakE+gfhJ6nDK7xPhI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HcvFft2JdogA4EBQdg+1vhE3HB97YjBZocD6LL0EBVIG2qRBPsLUbgE77iNsf6xFL cwNhWItmdap9hVh28rr0tVrXKeHkoVMxpU8paaDxb5QUnIbsAMewpxRz0oC8QRo0Ic zQzowARQNiv1hx8bFz85T2IrS0NWWq3zH8hQpsTVWuwasaGRkXUZcoD577nDjDSfjn wW1UlEW+BC4KOwiiymOPWscTPcaMivzr9HB5H/HdMyQUS8RfLB6c03ZhErHLnOkkqH w+EOoURk9rnLyrds9EPXpv4Qu9VjHCHJlx/ejV6IOaZFk+QPvApZn6kU+2y8tEB5nk 10iJW17e+R5tQ== From: Andrey Albershteyn To: linux-xfs@vger.kernel.org, fsverity@lists.linux.dev, linux-fsdevel@vger.kernel.org, ebiggers@kernel.org Cc: Andrey Albershteyn , hch@lst.de, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-btrfs@vger.kernel.org, djwong@kernel.org Subject: [PATCH v4 25/25] xfs: enable ro-compat fs-verity flag Date: Mon, 9 Mar 2026 20:23:40 +0100 Message-ID: <20260309192355.176980-26-aalbersh@kernel.org> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20260309192355.176980-1-aalbersh@kernel.org> References: <20260309192355.176980-1-aalbersh@kernel.org> Precedence: bulk X-Mailing-List: fsverity@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Finalize fs-verity integration in XFS by making kernel fs-verity aware with ro-compat flag. Signed-off-by: Andrey Albershteyn Reviewed-by: Darrick J. Wong [djwong: add spaces] Signed-off-by: Darrick J. Wong --- fs/xfs/libxfs/xfs_format.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/xfs/libxfs/xfs_format.h b/fs/xfs/libxfs/xfs_format.h index d67b404964fc..f5e43909f054 100644 --- a/fs/xfs/libxfs/xfs_format.h +++ b/fs/xfs/libxfs/xfs_format.h @@ -378,8 +378,9 @@ xfs_sb_has_compat_feature( #define XFS_SB_FEAT_RO_COMPAT_ALL \ (XFS_SB_FEAT_RO_COMPAT_FINOBT | \ XFS_SB_FEAT_RO_COMPAT_RMAPBT | \ - XFS_SB_FEAT_RO_COMPAT_REFLINK| \ - XFS_SB_FEAT_RO_COMPAT_INOBTCNT) + XFS_SB_FEAT_RO_COMPAT_REFLINK | \ + XFS_SB_FEAT_RO_COMPAT_INOBTCNT | \ + XFS_SB_FEAT_RO_COMPAT_VERITY) #define XFS_SB_FEAT_RO_COMPAT_UNKNOWN ~XFS_SB_FEAT_RO_COMPAT_ALL static inline bool xfs_sb_has_ro_compat_feature( -- 2.51.2 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 1D2DCFCA17D for ; Mon, 9 Mar 2026 19:25:37 +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=JnZfYgegjfETvfRL5Krmdl0Qhw0mr0JwVrI8k+X/EDo=; b=PF0gkevy4536aRF2VLAVKu1Yoi EEVMXzEAsW1G8RbGQHcSUEFUi4xRFjUn4ZeuyT815b12UiSZxoK4GJhhfi5rZBulhGZLi8FMZEhcY BvMwXJRJ65olBQxL2Yz4FYW6DVCEd1ZknSv2blbT6HuIvRLcYaSBAa16IXA80AsBs3D4=; Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1vzgER-00075U-Sn; Mon, 09 Mar 2026 19:25:36 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1vzgEL-00073f-U5 for linux-f2fs-devel@lists.sourceforge.net; Mon, 09 Mar 2026 19:25:30 +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=hMSBQDgfgXbj+COEnY8UJEvTMamUS7nx7dNCu5FsppM=; b=P8asR6UPO7quFh3BH40Hw+S1/S tkjFrREFRvBURf2V3ROdxbtsejD+VROksVR7qc62fb7i2m4is+AP55ZAZQ4L2MHcv53pvbG686KEv g7INMlna2vDK0s3JzSDcssb1Sj+WpcQuuG8O5cH7StvPlZH1ICHW0TF/ZlmBwlpsI+80=; 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=hMSBQDgfgXbj+COEnY8UJEvTMamUS7nx7dNCu5FsppM=; b=GrXLQDlzTPhGH3E4udep1BJmPr nL8tPG8eeGXfeqFoybdC691MLWh2ymu/BHE6S5+mnmKoPWSJIB7gZ41gIE2YbEftO7qxiLaO5zGos 5XSItJ8L+ZgeUF7V6aDSFtAj31uwNN6eic/5NDEkZbJgUlmU9uyeX1yPNp38X6sGqwl8=; 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 1vzgEJ-0001IZ-Sg for linux-f2fs-devel@lists.sourceforge.net; Mon, 09 Mar 2026 19:25:30 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id A9AFB445D3; Mon, 9 Mar 2026 19:25:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1F10C2BC87; Mon, 9 Mar 2026 19:25:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773084326; bh=xU2KCI35YrXRPX4STuuSkp2XrYakE+gfhJ6nDK7xPhI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HcvFft2JdogA4EBQdg+1vhE3HB97YjBZocD6LL0EBVIG2qRBPsLUbgE77iNsf6xFL cwNhWItmdap9hVh28rr0tVrXKeHkoVMxpU8paaDxb5QUnIbsAMewpxRz0oC8QRo0Ic zQzowARQNiv1hx8bFz85T2IrS0NWWq3zH8hQpsTVWuwasaGRkXUZcoD577nDjDSfjn wW1UlEW+BC4KOwiiymOPWscTPcaMivzr9HB5H/HdMyQUS8RfLB6c03ZhErHLnOkkqH w+EOoURk9rnLyrds9EPXpv4Qu9VjHCHJlx/ejV6IOaZFk+QPvApZn6kU+2y8tEB5nk 10iJW17e+R5tQ== To: linux-xfs@vger.kernel.org, fsverity@lists.linux.dev, linux-fsdevel@vger.kernel.org, ebiggers@kernel.org Date: Mon, 9 Mar 2026 20:23:40 +0100 Message-ID: <20260309192355.176980-26-aalbersh@kernel.org> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20260309192355.176980-1-aalbersh@kernel.org> References: <20260309192355.176980-1-aalbersh@kernel.org> MIME-Version: 1.0 X-Headers-End: 1vzgEJ-0001IZ-Sg Subject: [f2fs-dev] [PATCH v4 25/25] xfs: enable ro-compat fs-verity flag 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: Andrey Albershteyn , djwong@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-ext4@vger.kernel.org, hch@lst.de, 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 Finalize fs-verity integration in XFS by making kernel fs-verity aware with ro-compat flag. Signed-off-by: Andrey Albershteyn Reviewed-by: Darrick J. Wong [djwong: add spaces] Signed-off-by: Darrick J. Wong --- fs/xfs/libxfs/xfs_format.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/xfs/libxfs/xfs_format.h b/fs/xfs/libxfs/xfs_format.h index d67b404964fc..f5e43909f054 100644 --- a/fs/xfs/libxfs/xfs_format.h +++ b/fs/xfs/libxfs/xfs_format.h @@ -378,8 +378,9 @@ xfs_sb_has_compat_feature( #define XFS_SB_FEAT_RO_COMPAT_ALL \ (XFS_SB_FEAT_RO_COMPAT_FINOBT | \ XFS_SB_FEAT_RO_COMPAT_RMAPBT | \ - XFS_SB_FEAT_RO_COMPAT_REFLINK| \ - XFS_SB_FEAT_RO_COMPAT_INOBTCNT) + XFS_SB_FEAT_RO_COMPAT_REFLINK | \ + XFS_SB_FEAT_RO_COMPAT_INOBTCNT | \ + XFS_SB_FEAT_RO_COMPAT_VERITY) #define XFS_SB_FEAT_RO_COMPAT_UNKNOWN ~XFS_SB_FEAT_RO_COMPAT_ALL static inline bool xfs_sb_has_ro_compat_feature( -- 2.51.2 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel