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. 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
msg37099/pgp00000.pgp
Description: PGP signature