Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Apr 1995 00:33:30 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-current@FreeBSD.org, taob@gate.sinica.edu.tw
Subject:   Re: /usr/src/sys/sys/vnioctl.h
Message-ID:  <199504011433.AAA12680@godzilla.zeta.org.au>

index | next in thread | raw e-mail

>    First time compiling a -current kernel... hope I'm not missing
>something obvious.  I want vnode support in the new kernel, but I get
>this when trying to compile /usr/src/sys/dev/vn/vn.c:

>../../dev/vn/vn.c: In function `vnioctl':
>../../dev/vn/vn.c:443: `VNIOCSET' undeclared (first use this function)
>...

You somehow have an old version of vn.c.

>    Looking in <sys/vnioctl.h>:

>/*
> * Before you can use a unit, it must be configured with VNIOCSET.
> * The configuration persists across opens and closes of the device;
> * an VNIOCCLR must be used to reset a configuration.  An attempt to
> * VNIOCSET an already active unit will return EBUSY.
> */
>#define VNIOCATTACH     _IOWR('F', 0, struct vn_ioctl)  /* attach file */
>#define VNIOCDETACH     _IOWR('F', 1, struct vn_ioctl)  /* detach disk */
>#define VNIOCGSET       _IOWR('F', 2, u_long )          /* set global option */
>#define VNIOCGCLEAR     _IOWR('F', 3, u_long )          /* reset --//-- */
>#define VNIOCUSET       _IOWR('F', 4, u_long )          /* set unit option */
>#define VNIOCUCLEAR     _IOWR('F', 5, u_long )          /* reset --//-- */

>    The #defines for VNIOCSET and VNIOCCLR are nowhere to be found.

This is the current version.  The comment no longer matches the code.

Bruce


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504011433.AAA12680>