From owner-freebsd-current Sat Apr 1 06:38:06 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id GAA12644 for current-outgoing; Sat, 1 Apr 1995 06:38:06 -0800 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id GAA12638 for ; Sat, 1 Apr 1995 06:37:55 -0800 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id AAA12680; Sun, 2 Apr 1995 00:33:30 +1000 Date: Sun, 2 Apr 1995 00:33:30 +1000 From: Bruce Evans Message-Id: <199504011433.AAA12680@godzilla.zeta.org.au> To: freebsd-current@FreeBSD.org, taob@gate.sinica.edu.tw Subject: Re: /usr/src/sys/sys/vnioctl.h Sender: current-owner@FreeBSD.org Precedence: bulk > 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 : >/* > * 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