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:
bp 2002-04-26 03:49:02 +00:00
parent 823031c1e1
commit 999f0658ea

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;