From owner-freebsd-current Wed Nov 1 10:37:39 2000 Delivered-To: freebsd-current@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id EE85037B479; Wed, 1 Nov 2000 10:37:36 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id NAA27611; Wed, 1 Nov 2000 13:37:36 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.1/8.9.1) id eA1Ibao05491; Wed, 1 Nov 2000 13:37:36 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 1 Nov 2000 13:37:36 -0500 (EST) To: Marcel Moolenaar Cc: phk@freebsd.org, freebsd-current@freebsd.org Subject: Re: linux emulation In-Reply-To: <39FFBF64.FEF8AB30@cup.hp.com> References: <39FFBF64.FEF8AB30@cup.hp.com> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14848.25175.990127.871765@grasshopper.cs.duke.edu> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Marcel Moolenaar writes: > Wesley Morgan wrote: > > > > Anyone having problems with the linuxulator the past couple days? > > Define "past couple of days". I have a working linuxulator made on Oct > 29, 12:25 PST. phk took away mkbdev on 10/31. The following "fixes" it, but I have no idea if it is correct: Drew Index: compat/linux/linux_stats.c =================================================================== RCS file: /home/ncvs/src/sys/compat/linux/linux_stats.c,v retrieving revision 1.22 diff -u -r1.22 linux_stats.c --- compat/linux/linux_stats.c 2000/08/22 01:51:11 1.22 +++ compat/linux/linux_stats.c 2000/11/01 18:34:05 @@ -360,8 +379,8 @@ * dev_t returned from previous syscalls. Just return a bzeroed * ustat in that case. */ - dev = makebdev(uap->dev >> 8, uap->dev & 0xFF); - if (vfinddev(dev, VBLK, &vp)) { + dev = makedev(uap->dev >> 8, uap->dev & 0xFF); + if (vfinddev(dev, VCHR, &vp)) { if (vp->v_mount == NULL) return (EINVAL); stat = &(vp->v_mount->mnt_stat); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message