VFS_CHECKEXP(9)
π NAME π
okay so welcome to the Kernel Developer's Manual page for VFS_CHECKEXP(9), bestie β this one is literally βcheck if a file system is exported to a client.β no cap, thatβs the whole name. π
β¨ SYNOPSIS β¨
the include vibes first, then the signature β copy these exactly, iykyk:
#include <sys/param.h>
#include <sys/mount.h>
int
VFS_CHECKEXP(struct mount *mp, struct sockaddr *nam, uint64_t *exflagsp,
struct ucred **credanonp, int *numsecflavor, int *secflavors);
πΈ DESCRIPTION πΈ
the VFS_CHECKEXP() macro is what the NFS server uses to check if a mount point is exported to a client. itβs giving βvibe check, but for export accessβ π
the arguments it expects are:
mpβ the mount point to be checked.namβ an mbuf containing the network address of the client.exflagspβ return parameter for the export flags for this client.credanonpβ return parameter for the anonymous credentials for this client.numsecflavorsβ return value for the number of security flavors for this client.secflavorsβ must be an array of sizeMAXSECFLAVORS, in which the security flavors for this client are returned.
so yeah: call VFS_CHECKEXP() on a file system's mount structure to determine if it is exported to a client whose address is contained in nam. thatβs the mission. π«Ά
it gets called in the NFS server once a vnode for a file handle has been acquired, so it can determine what access the client is allowed on the file system the vnode resides in. for NFSv4, it is also called whenever the lookup operation crosses a server file system mount point, to update the access information. iconic behavior, honestly. β
the operation is file system specific, but is normally handled by the default vfs_stdcheckexp. lowkey the default does the heavy lifting.
π¦ RETURN VALUES π¦
the export flags, anonymous credentials and security flavors specific to the client will be returned in *exflagsp, *credanonp, *numsecflavors and *secflavors. periodt. π«
π₯ SEE ALSO π₯
π AUTHORS π
this manual page was written by Alfred Perlstein. shoutout, legend. π
mwah π this one comes from Debian, dated June 17, 2020, and itβs page VFS_CHECKEXP(9) β bye bestie, go check those exports π«Άβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 1999 Alfred Perlstein
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms