From owner-freebsd-hackers Thu Sep 26 15: 7:31 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 E3FD637B401 for ; Thu, 26 Sep 2002 15:07:29 -0700 (PDT) Received: from genius.tao.org.uk (genius.tao.org.uk [212.135.162.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 431C343E6E for ; Thu, 26 Sep 2002 15:07:29 -0700 (PDT) (envelope-from joe@genius.tao.org.uk) Received: by genius.tao.org.uk (Postfix, from userid 100) id CB5364213; Thu, 26 Sep 2002 23:07:11 +0100 (BST) Date: Thu, 26 Sep 2002 23:07:11 +0100 From: Josef Karthauser To: Julian Elischer Cc: Bruce M Simpson , Mark Santcroos , freebsd-hackers@FreeBSD.ORG Subject: Re: vmware reads disk on non-sector boundary Message-ID: <20020926220711.GB11316@genius.tao.org.uk> Mail-Followup-To: Josef Karthauser , Julian Elischer , Bruce M Simpson , Mark Santcroos , freebsd-hackers@FreeBSD.ORG References: <20020926185036.GB10421@genius.tao.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XF85m9dhOBO43t/C" Content-Disposition: inline In-Reply-To: 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 --XF85m9dhOBO43t/C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 26, 2002 at 01:35:43PM -0700, Julian Elischer wrote: > >=20 > > Take a look at /sys/compat/linux/linux_stats.c, > >=20 > > 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. > > ---------------------------- > > This fixes the problem with VMWARE not being able to use raw disks. This should have read, "Linux uses block devices to access raw drives, but we've got rid of them in -current and so VMWare is having a hard time running off raw partitions. Pretending that disk character device nodes are block devices appears to make VMWare run off raw drives again." >=20 > but it still doesn't help with partial block reads.. >=20 That didn't appear to be a problem with VMWare2. 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 --XF85m9dhOBO43t/C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iEYEARECAAYFAj2ThQ8ACgkQXVIcjOaxUBYXQACgtk2fTbAXQa8ZdJFy1+dRB3R1 j7EAoOp+Ie8uwtxNSQ8W0G/jDnvpVTY/ =j4OK -----END PGP SIGNATURE----- --XF85m9dhOBO43t/C-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message