From owner-freebsd-hackers Thu Sep 26 13:40:14 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65D1F37B401; Thu, 26 Sep 2002 13:40:12 -0700 (PDT) Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B06643E75; Thu, 26 Sep 2002 13:40:12 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020926204009.YNML15492.rwcrmhc53.attbi.com@InterJet.elischer.org>; Thu, 26 Sep 2002 20:40:09 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id NAA52745; Thu, 26 Sep 2002 13:35:45 -0700 (PDT) Date: Thu, 26 Sep 2002 13:35:43 -0700 (PDT) From: Julian Elischer To: Josef Karthauser Cc: Bruce M Simpson , Mark Santcroos , freebsd-hackers@FreeBSD.ORG Subject: Re: vmware reads disk on non-sector boundary In-Reply-To: <20020926185036.GB10421@genius.tao.org.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 26 Sep 2002, Josef Karthauser wrote: > On Thu, Sep 26, 2002 at 09:52:37AM +0100, Josef Karthauser wrote: > > On Thu, Sep 26, 2002 at 09:47:33AM +0100, Bruce M Simpson wrote: > > > On Wed, Sep 25, 2002 at 09:39:30PM +0100, Josef Karthauser wrote: > > > > I thought that we hacked around this in the linuxulator 18 months ago > > > > by transparently converting block calls into character calls behind the > > > > scenes. Either this has been removed or something else is wrong. > > > > > > This isn't the case for me on -STABLE. I had to create block devices for > > > raw disks to work. > > > > > > > Yes that needs to be done one -stable. The hack I was talking about was > > for -current only where block devices don't exist anymore. > > > > It took a while to find, but this is the hack I was referring to: > > Take a look at /sys/compat/linux/linux_stats.c, > > revision 1.29 > date: 2001/01/14 23:33:50; author: joe; state: Exp; lines: +18 -11 > Instead of hard coding the major numbers for IDE and SCSI disks > look in the device's cdevsw for the D_DISK flag. > ---------------------------- > revision 1.28 > date: 2000/12/29 00:44:42; author: paul; state: Exp; lines: +15 -1 > Map FreeBSD character device hard disks to Linux block device hard > disks. > > This fixes the problem with VMWARE not being able to use raw disks. but it still doesn't help with partial block reads.. > > Joe > -- > "As far as the laws of mathematics refer to reality, they are not certain; > and as far as they are certain, they do not refer to reality." - Albert > Einstein, 1921 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message