1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

UIO_NOCOPY is not supported for now, so refuse read opeartion if this flag

is set. The full emulation of bio are on its way...
This commit is contained in:
Boris Popov 2002-04-26 03:49:02 +00:00
parent dbb17987fc
commit b88157559d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95480

View File

@ -185,6 +185,12 @@ smbfs_readvnode(struct vnode *vp, struct uio *uiop, struct ucred *cred)
struct smb_cred scred;
int error, lks;
/*
* Protect against method which is not supported for now
*/
if (uiop->uio_segflg == UIO_NOCOPY)
return EOPNOTSUPP;
if (vp->v_type != VREG && vp->v_type != VDIR) {
SMBFSERR("vn types other than VREG or VDIR are unsupported !\n");
return EIO;