From owner-freebsd-bugs Sat Aug 11 7: 0:12 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6543B37B405 for ; Sat, 11 Aug 2001 07:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7BE02J13572; Sat, 11 Aug 2001 07:00:02 -0700 (PDT) (envelope-from gnats) Received: from m2.bezeqint.net (m2.bezeqint.net [192.115.106.47]) by hub.freebsd.org (Postfix) with ESMTP id 84F6037B407 for ; Sat, 11 Aug 2001 06:53:49 -0700 (PDT) (envelope-from nimrodm@bezeqint.net) Received: from bsd.net.il (bzq-148-87.pop.bezeqint.net [212.179.148.87]) by m2.bezeqint.net (Mirapoint) with ESMTP id AEW96784; Sat, 11 Aug 2001 16:53:34 +0300 (IDT) Received: (from nimrodm@localhost) by bsd.net.il (8.11.5/8.9.3) id f7BDmhZ14384; Sat, 11 Aug 2001 16:48:43 +0300 (IDT) (envelope-from nimrodm) Message-Id: <200108111348.f7BDmhZ14384@bsd.net.il> Date: Sat, 11 Aug 2001 16:48:43 +0300 (IDT) From: Nimrod Mesika Reply-To: Nimrod Mesika To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: kern/29624: kernel prints "bmaj but is not a boot disk" for isdn4bsd devices Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29624 >Category: kern >Synopsis: kernel prints "bmaj but is not a boot disk" for isdn4bsd devices >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Aug 11 07:00:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Nimrod Mesika >Release: FreeBSD 4.4-PRERELEASE i386 >Organization: >Environment: System: FreeBSD localhost.bsd.net.il 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE #1: Sat Aug 11 17:21:43 IDT 2001 root@:/usr/obj/usr/src/sys/MYKERNEL i386 >Description: When using isdn4bsd, FreeBSD displays the following message during the boot process: "i4bctl": bmaj but is not a disk This message is displayed for each isdn4bsd devices selected at kernel compile time (i4b, i4btel, etc.) The reason is that 'struct cdevsw' is declared differently in i4b and the FreeBSD kernel. >How-To-Repeat: Just configure i4b, compile it with the kernel and reboot... >Fix: Haven't tried this myself BUT take a look at: /sys/i4b/driver/i4b_ctl.c (lines 107 to 121): static struct cdevsw i4bctl_cdevsw = { /* open */ i4bctlopen, /* close */ i4bctlclose, /* read */ noread, /* write */ nowrite, /* ioctl */ i4bctlioctl, /* poll */ POLLFIELD, /* mmap */ nommap, /* strategy */ nostrategy, /* name */ "i4bctl", /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, /* flags */ 0, }; .. and .. /sys/sys/conf.h (lines 159 to 176): struct cdevsw { d_open_t *d_open; d_close_t *d_close; d_read_t *d_read; d_write_t *d_write; d_ioctl_t *d_ioctl; d_poll_t *d_poll; d_mmap_t *d_mmap; d_strategy_t *d_strategy; const char *d_name; /* base device name, e.g. 'vn' */ int d_maj; d_dump_t *d_dump; d_psize_t *d_psize; u_int d_flags; int d_bmaj; /* additions below are not binary compatible with 4.2 and below */ d_kqfilter_t *d_kqfilter; }; The two last entries (d_bmaj and d_kqfilter) are missing from the initializer of i4b_ctl (and probably other i4b devices). The first field is the one responsible for the "not a disk" message (printed by /sys/kern/kern_conf.c:110). >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message