diff --git a/src/afs/OBSD/osi_vfsops.c b/src/afs/OBSD/osi_vfsops.c index 40baec0b3d..69a55800be 100644 --- a/src/afs/OBSD/osi_vfsops.c +++ b/src/afs/OBSD/osi_vfsops.c @@ -268,6 +268,13 @@ afs_unmount(afsp, flags, p) { extern int sys_ioctl(), sys_setgroups(); + struct vnode *vp; + + for (vp = LIST_FIRST(&afsp->mnt_vnodelist); vp != NULL; + vp = LIST_NEXT(vp, v_mntvnodes)) { + if (vp->v_usecount) return EBUSY; + } + AFS_STATCNT(afs_unmount); #ifdef AFS_DISCON_ENV give_up_cbs();