]> git.hungrycats.org Git - linux/commit
exportfs,nfsd: rework checking for layout-based block device access support
authorChristoph Hellwig <hch@lst.de>
Thu, 23 Apr 2026 18:18:54 +0000 (14:18 -0400)
committerChristian Brauner <brauner@kernel.org>
Mon, 11 May 2026 09:11:48 +0000 (11:11 +0200)
commitda9baa5470dcb077a7c9806f0925c60b530c470b
treeeda7fe21f6bad797a060f5caa3ca4dbe1e2115d6
parent61eb48f515853937a6237e7f64dbe9d099b54613
exportfs,nfsd: rework checking for layout-based block device access support

Currently NFSD hard codes checking support for block-style layouts.
Lift the checks into a file system-helper and provide a exportfs-level
helper to implement the typical checks.

This prepares for supporting block layout export of multiple devices
per file system.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Link: https://patch.msgid.link/20260423181854.743150-5-cel@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/nfsd/export.c
fs/nfsd/nfs4layouts.c
fs/xfs/xfs_pnfs.c
include/linux/exportfs_block.h