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 EC9BE3CD8C7; Thu, 9 Apr 2026 13:15:07 +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=1775740508; cv=none; b=tORMwFVKCxQss3d8O8ZAOlfVblK5/h0bF3v9NZbU5x5JOtv4Umic+fJCCENTJfFGTKHgWYme2BYblJiNso5qiDbzWnZ9fRzMDzGlaiJLay1UsYvjtrXNfTlL3T5QHbvN7mhA5aWfxzqn5njNvjT1S+g2pWp7tdEsanqX8JFWueE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775740508; c=relaxed/simple; bh=sZh29Mv+klOHY0T8+BZo/78DTaP7x7d1uawWMbN02CY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BeyV/59NWPcOKfi/Ol8zI5q7RLmsSw7YiVoRLvT7+PAmulQpwcKRLrqUsA4ABILok61qVJQjpqsSkNwFNmmzTnwDUYt4149W9nkjPy51W7uLRdE+kRYTxoKN7GbV5RggEe0bYOWHd/w93OhwFbtIWOzXzrBfzypVoJNTHFIp7Q8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cWyoiMv/; 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="cWyoiMv/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99F11C4CEF7; Thu, 9 Apr 2026 13:15:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775740507; bh=sZh29Mv+klOHY0T8+BZo/78DTaP7x7d1uawWMbN02CY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cWyoiMv/AmxkDOmQNFlrFeZrU0ylsxmGAsJuzoNNowRHegnd1PcShA+mdw2w+93e5 55E+LOHS7X4L18g/4q2a/AFpyBwZjUX0r2guzydt2MnzLUfPi9M2Iw0M8EVdf3FbJq /eBNP6YhYJEQ0bUdkq4qok6cPHI9dsokqbTKq6eEt483jigYtqZdBXCcLEyRMMdMbS Uj3ZIVBDL4BytMHBLVjFWvpNcq4TLZ1Z55PRWRb9utSVHASfPrOaLZl310yN+4RrTb OqcgIeJJZB4g21CgvyJbvDSl8SfzKUtugzaSKjgwBAThpYfWYu6giFncazOz2npMlK VeMzvfpYIXPwg== From: Andrey Albershteyn To: linux-xfs@vger.kernel.org, fsverity@lists.linux.dev, linux-fsdevel@vger.kernel.org, ebiggers@kernel.org Cc: "Darrick J. Wong" , hch@lst.de, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-btrfs@vger.kernel.org, Andrey Albershteyn , Andrey Albershteyn Subject: [PATCH v7 19/22] xfs: advertise fs-verity being available on filesystem Date: Thu, 9 Apr 2026 15:13:51 +0200 Message-ID: <20260409131404.1545834-20-aalbersh@kernel.org> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20260409131404.1545834-1-aalbersh@kernel.org> References: <20260409131404.1545834-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 d165de607d17..ebf17a0b0722 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); -- 2.51.2