Subject: Re: RFC small patch for vfs_subr.c:vfs_mountedon()
To: None <reinoud@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-kern
Date: 01/18/2006 11:47:15
> > @@ -2065,6 +2065,8 @@ vfs_mountedon(struct vnode *vp)
> >         struct vnode *vq;
> >         int error = 0;
> >  
> > +       if (vp->v_type != VBLK && vp->v_type != VCHR)
> > +               return (ENXIO);
> 
> i think it's better to do:
> 
> 	if (vp->v_type != VBLK) {
> 		return ENOBLK;

ENOTBLK, i meant.

YAMAMOTO Takashi