Subject: Re: sysctl: machdep.diskinfo: unknown structure returned
To: None <netbsd-help@netbsd.org>
From: Wenchi Liao <wliao@midway.uchicago.edu>
List: netbsd-help
Date: 08/03/1999 16:50:19
Wenchi Liao wrote:
>
>"D'Arcy" "J.M." Cain wrote:
>>Thus spake Wenchi Liao
>>> Playing with sysctl on i386 netbsd1.4, and got this
>>> message. Is this a bad thing?
>>> 
>>Are you by any chance upgrading your system?  I seem to recall seeing
>>this while moving from 1.4.1 to -current on a system but it looks
>>fine now.  Perhaps you have a kernel/sysctl mismatch.
>
>stock 1.4 distro binaries, and a modified GENERIC kernel
>(removing pcmcia stuff, etc.). I'll try the generic kernel
>when I get a chance....

So tried i386 1.4, stock userland, GENERIC kernel. Same
thing: unkown structure returned.

I ran this through ktrace -id and kdump -n; is it helpful
to anybody?

       "machdep.booted_kernel = netbsd
       "
  2986 sysctl   RET   write 0x1f
  2986 sysctl   CALL  __sysctl(0xefbfd31c,0x2,0xefbfcf1c,0xefbfcefc,0,0)
  2986 sysctl   RET   __sysctl 0
  2986 sysctl   CALL  write(0x2,0xefbfc7d0,0x8)
  2986 sysctl   GIO   fd 2 wrote 8 bytes
       "sysctl: "
  2986 sysctl   RET   write 0x8
  2986 sysctl   CALL  write(0x2,0xefbfc7e8,0x2c)
  2986 sysctl   GIO   fd 2 wrote 44 bytes
       "machdep.diskinfo: unknown structure returned"
  2986 sysctl   RET   write 0x2c
  2986 sysctl   CALL  write(0x2,0xefbfc7d4,0x1)
  2986 sysctl   GIO   fd 2 wrote 1 bytes
       "
       "
  2986 sysctl   RET   write 0x1
  2986 sysctl   CALL  write(0x1,0x5000,0x67)
  2986 sysctl   GIO   fd 1 wrote 103 bytes
       "user.cs_path = /usr/bin:/bin:/usr/sbin:/sbin:/usr/pkg/bin:/usr/pkg/sbi\
        n:/usr/local/bin:/usr/local/sbin
       "


WL