From owner-freebsd-current Sat May 29 5:21:30 1999 Delivered-To: freebsd-current@freebsd.org Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (Postfix) with ESMTP id 6D5D21522E for ; Sat, 29 May 1999 05:21:25 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id WAA28838; Sat, 29 May 1999 22:21:11 +1000 Date: Sat, 29 May 1999 22:21:11 +1000 From: Bruce Evans Message-Id: <199905291221.WAA28838@godzilla.zeta.org.au> To: ache@nagual.pp.ru, dima@tejblum.dnttm.rssi.ru Subject: Re: savecore too (Re: kvm_getswapinfo is broken) Cc: current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Just found that savecore is broken in the same way. What is proper >procedure to fix it? I.e. is it must be fixed in the kernel, leaving >userland programs as is or in userland, leaving kernel as is? The kernel needs to maintain (or create as necessary for return by sysctl()) udev_t versions of most (all?) device numbers that are accessed in userland. I think the proper way to do this will be to maintain a udev_t for each dev_t in the kernel too. udev_t should be named dev_t, the current dev_t should be named something like kdev_t and should be a pointer to a struct containing the (user) dev_t. The kernel needs something like this for fast conversions in old interfaces like stat(2). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message