Date: Thu, 26 Sep 2002 13:35:43 -0700 (PDT) From: Julian Elischer <julian@elischer.org> To: Josef Karthauser <joe@FreeBSD.org> Cc: Bruce M Simpson <bms@spc.org>, Mark Santcroos <marks@ripe.net>, freebsd-hackers@FreeBSD.ORG Subject: Re: vmware reads disk on non-sector boundary Message-ID: <Pine.BSF.4.21.0209261334510.51936-100000@InterJet.elischer.org> In-Reply-To: <20020926185036.GB10421@genius.tao.org.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0209261334510.51936-100000>