From owner-freebsd-current Sat Oct 3 13:38:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA27017 for freebsd-current-outgoing; Sat, 3 Oct 1998 13:38:49 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from tor-dev1.nbc.netcom.ca (tor-dev1.nbc.netcom.ca [207.181.89.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA27001 for ; Sat, 3 Oct 1998 13:38:42 -0700 (PDT) (envelope-from taob@tor-dev1.nbc.netcom.ca) Received: (from taob@localhost) by tor-dev1.nbc.netcom.ca (8.8.8/8.8.8) id QAA00382; Sat, 3 Oct 1998 16:38:05 -0400 (EDT) Date: Sat, 3 Oct 1998 16:38:05 -0400 (EDT) From: Brian Tao X-Sender: taob@tor-dev1.nbc.netcom.ca To: FREEBSD-CURRENT Subject: devstat_end_transaction: HELP!! busy_count is < 0! Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message seems to be harmless enough, based on what I see (or don't see) in /usr/src/sys/kern/subr_devstat.c:180, but I presume the printf was put there as warning flag if ds->busy_count was decremented below 0. From my best recollection, I was attempting to mount two MS-DOS filesystems on wd0s1 and wd0s3 (wd0s2 is the FreeBSD partition). The mountmsdosfs() errors are from mounting wd0s3, which it can't see to do (perhaps because the partition type != 6?). This is on a Sep 30 kernel, ncr0 driver, wd0 and da0 drives present. Oct 3 10:26:39 cabal /kernel: devstat_end_transaction: HELP!! busy_count is < 0! Oct 3 10:26:39 cabal last message repeated 20 times Oct 3 10:26:39 cabal /kernel: dev Oct 3 10:26:39 cabal /kernel: stat_end_transaction: HELP!! busy_count is < 0! Oct 3 10:26:39 cabal /kernel: devstat_end_transaction: HELP!! busy_count is < 0! Oct 3 10:26:39 cabal last message repeated 17 times Oct 3 10:26:40 cabal /kernel: mountmsdosfs(): bad bpb Oct 3 10:28:25 cabal /kernel: mountmsdosfs(): bad bpb # fdisk wd0 ******* Working on device /dev/rwd0 ******* parameters extracted from in-core disklabel are: cylinders=1108 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=1108 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 6,(Primary 'big' DOS (> 32MB)) start 63, size 4192902 (2047 Meg), flag 0 beg: cyl 0/ sector 1/ head 1; end: cyl 260/ sector 63/ head 254 The data for partition 2 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 4192965, size 6281415 (3067 Meg), flag 80 (active) beg: cyl 261/ sector 1/ head 0; end: cyl 651/ sector 63/ head 254 The data for partition 3 is: sysid 15,(Extended DOS, LBA) start 10474380, size 7325640 (3576 Meg), flag 0 beg: cyl 652/ sector 1/ head 0; end: cyl 1023/ sector 63/ head 254 The data for partition 4 is: dmesg output: wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): wd0: 8693MB (17803440 sectors), 17662 cyls, 16 heads, 63 S/T, 512 B/S wd0: ATA INQUIRE valid = 0007, dmamword = 0007, apio = 0003, udma = 0407 [...] ncr0: restart (scsi reset). (probe6:ncr0:0:6:0): INQUIRY. CDB: 12 1 80 0 ff 0 (probe6:ncr0:0:6:0): ILLEGAL REQUEST asc:24,0 (probe6:ncr0:0:6:0): Invalid field in CDB sks:c8,1 pass0 at ncr0 bus 0 target 3 lun 0 pass0: Fixed Direct Access SCSI2 device pass0: Serial Number LN496865000019070BR8 pass0: 20.0MB/s transfers (20.0MHz, offset 15), Tagged Queueing Enabled pass1 at ncr0 bus 0 target 6 lun 0 pass1: Removable CD-ROM SCSI2 device pass1: 10.0MB/s transfers (10.0MHz, offset 16) da0 at ncr0 bus 0 target 3 lun 0 da0: Fixed Direct Access SCSI2 device da0: Serial Number LN496865000019070BR8 da0: 20.0MB/s transfers (20.0MHz, offset 15), Tagged Queueing Enabled da0: 4340MB (8888924 512 byte sectors: 255H 63S/T 553C) cd0 at ncr0 bus 0 target 6 lun 0 cd0: Removable CD-ROM SCSI2 device cd0: 10.0MB/s transfers (10.0MHz, offset 16) cd0: cd present [125703 x 2048 byte records] [...] Considering FFS root f/s. changing root device to wd0s2a wd0s1: type 0x6, start 63, end = 4192964, size 4192902 : OK wd0s2: type 0xa5, start 4192965, end = 10474379, size 6281415 : OK wd0s3: type 0xf, start 10474380, end = 17800019, size 7325640 : OK wd0s5: type 0xb, start 10474443, end = 17800019, size 7325577 : OK da0s1: type 0xa5, start 63, end = 8883944, size 8883882 : OK -- Brian Tao (BT300, taob@risc.org) "Though this be madness, yet there is method in't" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message