diff options
author | alfred <alfred@FreeBSD.org> | 1999-09-11 00:57:20 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 1999-09-11 00:57:20 +0000 |
commit | b5a29f808009bfe1f6e8a1d8efb222cdb05157b3 (patch) | |
tree | b2febb4acf6f8997a8774d23301eee49ec8ab94e /share/man/man9/VFS_FHTOVP.9 | |
parent | 44374643d1829aa9b3f54541623a984a337a8872 (diff) | |
download | FreeBSD-src-b5a29f808009bfe1f6e8a1d8efb222cdb05157b3.zip FreeBSD-src-b5a29f808009bfe1f6e8a1d8efb222cdb05157b3.tar.gz |
Document VFS changes:
VFS_CHECKEXP.9, now used to check export credentials
VFS_FHTOVP.9, only used for filehandle to vnode, no access checks are done.
VFS.9, inform people of the vfs_std* functions available to avoid
ugly casts to eopnotsup and making of dummy functions to return 0.
Diffstat (limited to 'share/man/man9/VFS_FHTOVP.9')
-rw-r--r-- | share/man/man9/VFS_FHTOVP.9 | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/share/man/man9/VFS_FHTOVP.9 b/share/man/man9/VFS_FHTOVP.9 index 875fed4..9892877 100644 --- a/share/man/man9/VFS_FHTOVP.9 +++ b/share/man/man9/VFS_FHTOVP.9 @@ -39,24 +39,18 @@ .Fd #include <sys/mount.h> .Fd #include <sys/vnode.h> .Ft int -.Fn VFS_FHTOVP "struct mount *mp" "struct fid *fhp" "struct mbuf *nam" "struct vnode **vpp" "int *exflagsp" "struct ucred **credanonp" +.Fn VFS_FHTOVP "struct mount *mp" "struct fid *fhp" "struct vnode **vpp" .Sh DESCRIPTION This is used by the NFS server to turn an NFS filehandle into a vnode. .Pp Its arguments are: -.Bl -tag -width credanonp +.Bl -tag -width vpp .It Ar mp The filesystem. .It Ar fhp The filehandle to convert. -.It Ar nam -An mbuf containing the network address of the client. .It Ar vpp Return parameter for the new locked vnode. -.It Ar exflagsp -Return parameter for the export flags for this client. -.It Ar credanonp -Return parameter for the anonymous credentials for this client. .El .Pp The contents of the filehandle are defined by the filesystem and are @@ -67,26 +61,17 @@ resources have been reused for a new file. For instance, UFS filesystem stores the inode number and inode generation counter in its filehandle. .Pp -The filesystem should call -.Xr vfs_export_lookup 9 -with the address of an appropriate -.Dv netexport -structure and the address of the client, -.Fa nam , -to verify that the client can access this filesystem. +A call to this function should generally be followed by a call to +.Xr VFS_CHECKEXP 9 +to check if the file is accessable to the client +.Pp .Sh RETURN VALUES The locked vnode for the file will be returned in .Fa *vpp . -The export flags and anonymous credentials specific to the client -(returned by -.Xr vfs_export_lookup 9 ) -will be returned in -.Fa *exflagsp -and -.Fa *credanonp . .Sh SEE ALSO .Xr VFS 9 , .Xr VFS_VPTOFH 9 , +.Xr VFS_CHECKEXP 9 , .Xr vnode 9 .Sh AUTHORS This man page was written by |