summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorbp <bp@FreeBSD.org>2002-04-26 03:49:02 +0000
committerbp <bp@FreeBSD.org>2002-04-26 03:49:02 +0000
commit999f0658ea28c94d271ea12db053a7342b975be6 (patch)
tree9500ea4c49ae55c1c806953ed4b9086ee70c9628 /sys/fs
parent823031c1e1dc1405af6e0518f8bca508dbc4c5c9 (diff)
downloadFreeBSD-src-999f0658ea28c94d271ea12db053a7342b975be6.zip
FreeBSD-src-999f0658ea28c94d271ea12db053a7342b975be6.tar.gz
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...
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/smbfs/smbfs_io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/fs/smbfs/smbfs_io.c b/sys/fs/smbfs/smbfs_io.c
index 7574af5..6a2877b 100644
--- a/sys/fs/smbfs/smbfs_io.c
+++ b/sys/fs/smbfs/smbfs_io.c
@@ -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;
OpenPOWER on IntegriCloud