|
|
| version 1.17, 2004/01/30 06:18:28 | version 1.18, 2004/02/08 05:27:42 |
|---|---|
| Line 490 nfs_open(ap) | Line 490 nfs_open(ap) |
| #ifdef DIAGNOSTIC | #ifdef DIAGNOSTIC |
| printf("open eacces vtyp=%d\n",vp->v_type); | printf("open eacces vtyp=%d\n",vp->v_type); |
| #endif | #endif |
| return (EACCES); | return (EOPNOTSUPP); |
| } | } |
| /* | /* |
| * Get a valid lease. If cached data is stale, flush it. | * Get a valid lease. If cached data is stale, flush it. |
| Line 1038 nfs_read(ap) | Line 1038 nfs_read(ap) |
| { | { |
| struct vnode *vp = ap->a_vp; | struct vnode *vp = ap->a_vp; |
| if (vp->v_type != VREG) | |
| return (EPERM); | |
| return (nfs_bioread(vp, ap->a_uio, ap->a_ioflag)); | return (nfs_bioread(vp, ap->a_uio, ap->a_ioflag)); |
| switch (vp->v_type) { | |
| case VREG: | |
| return (nfs_bioread(vp, ap->a_uio, ap->a_ioflag)); | |
| case VDIR: | |
| return (EISDIR); | |
| default: | |
| return EOPNOTSUPP; | |
| } | |
| } | } |
| /* | /* |