Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Sep 2002 19:50:36 +0100
From:      Josef Karthauser <joe@FreeBSD.org>
To:        Bruce M Simpson <bms@spc.org>, Julian Elischer <julian@elischer.org>, Mark Santcroos <marks@ripe.net>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: vmware reads disk on non-sector boundary
Message-ID:  <20020926185036.GB10421@genius.tao.org.uk>
In-Reply-To: <20020926085237.GA2645@genius.tao.org.uk>
References:  <20020925173453.GA1347@laptop.6bone.nl> <Pine.BSF.4.21.0209251114130.46717-100000@InterJet.elischer.org> <20020925203930.GB25571@genius.tao.org.uk> <20020926084733.GA26352@spc.org> <20020926085237.GA2645@genius.tao.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

--cvVnyQ+4j833TQvp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 t=
he
> > > scenes.  Either this has been removed or something else is wrong.
> >=20
> > This isn't the case for me on -STABLE. I had to create block devices for
> > raw disks to work.
> >=20
>=20
> 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.
>=20

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
--=20
"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

--cvVnyQ+4j833TQvp
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iEYEARECAAYFAj2TVvwACgkQXVIcjOaxUBZNkwCeMQTrwA2TTwHOeUxYFnMe08mv
yeQAoK3Xe2EV0DCy7hsz2UIiOOTHSrH5
=+fNy
-----END PGP SIGNATURE-----

--cvVnyQ+4j833TQvp--

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?20020926185036.GB10421>