[3086] in Athena Bugs

home help back first fref pref prev next nref lref last post

Kernel: sys/vfs.c

daemon@ATHENA.MIT.EDU (John Carr)
Mon Sep 4 19:24:21 1989

To: bugs@ATHENA.MIT.EDU
Date: Mon, 04 Sep 89 19:24:01 EDT
From: John Carr <jfc@ATHENA.MIT.EDU>

A suggestion for a small change to produce a more useful error message
(returning ENOTDIR instead of EBUSY when attempting to mount on top of
a file).  I have noticed no bad side effects while running this on my
workstation this summer.

*** /minos/sys/sys/vfs.c        Wed Apr 27 18:39:41 1988
--- vfs.c       Thu Aug 24 20:11:17 1989
***************
*** 56,62 ****
        if (u.u_error)
                return;
        dnlc_purge();
!       if (vp->v_count != 1 || vp->v_type != VDIR) {
                VN_RELE(vp);
                u.u_error = EBUSY;
                return;
--- 56,67 ----
        if (u.u_error)
                return;
        dnlc_purge();
!       if (vp->v_type != VDIR) {
!               VN_RELE(vp);
!               u.u_error = ENOTDIR;
!               return;
!       }
!       if (vp->v_count != 1) {
                VN_RELE(vp);
                u.u_error = EBUSY;
                return;

home help back first fref pref prev next nref lref last post