From owner-freebsd-hackers Thu Sep 26 11:50:56 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 5743537B401 for ; Thu, 26 Sep 2002 11:50:54 -0700 (PDT) Received: from genius.tao.org.uk (genius.tao.org.uk [212.135.162.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A94B43E77 for ; Thu, 26 Sep 2002 11:50:53 -0700 (PDT) (envelope-from joe@genius.tao.org.uk) Received: by genius.tao.org.uk (Postfix, from userid 100) id DC7364281; Thu, 26 Sep 2002 19:50:36 +0100 (BST) Date: Thu, 26 Sep 2002 19:50:36 +0100 From: Josef Karthauser To: Bruce M Simpson , Julian Elischer , Mark Santcroos , freebsd-hackers@FreeBSD.ORG Subject: Re: vmware reads disk on non-sector boundary Message-ID: <20020926185036.GB10421@genius.tao.org.uk> Mail-Followup-To: Josef Karthauser , Bruce M Simpson , Julian Elischer , Mark Santcroos , freebsd-hackers@FreeBSD.ORG References: <20020925173453.GA1347@laptop.6bone.nl> <20020925203930.GB25571@genius.tao.org.uk> <20020926084733.GA26352@spc.org> <20020926085237.GA2645@genius.tao.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cvVnyQ+4j833TQvp" Content-Disposition: inline In-Reply-To: <20020926085237.GA2645@genius.tao.org.uk> User-Agent: Mutt/1.5.1i 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 --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