From owner-freebsd-hackers Thu Oct 3 1:13:43 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 81D1437B404 for ; Thu, 3 Oct 2002 01:13:42 -0700 (PDT) Received: from postman.ripe.net (postman.ripe.net [193.0.0.199]) by mx1.FreeBSD.org (Postfix) with SMTP id 03F5643E65 for ; Thu, 3 Oct 2002 01:13:41 -0700 (PDT) (envelope-from marks@ripe.net) Received: (qmail 27209 invoked by uid 0); 3 Oct 2002 08:13:39 -0000 Received: from birch.ripe.net (193.0.1.96) by postman.ripe.net with SMTP; 3 Oct 2002 08:13:39 -0000 Received: from laptop.6bone.nl (cow.ripe.net [193.0.1.239]) by birch.ripe.net (8.12.5/8.11.6) with SMTP id g938C295016167; Thu, 3 Oct 2002 10:12:02 +0200 Received: (nullmailer pid 4687 invoked by uid 1000); Thu, 03 Oct 2002 08:11:52 -0000 Date: Thu, 3 Oct 2002 10:11:52 +0200 From: Mark Santcroos To: Ian Dowse Cc: Garance A Drosihn , freebsd-hackers@FreeBSD.ORG, emulation@FreeBSD.ORG Subject: Re: vmware reads disk on non-sector boundary Message-ID: <20021003081152.GB584@laptop.6bone.nl> References: <200210030904.aa81031@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200210030904.aa81031@salmon.maths.tcd.ie> User-Agent: Mutt/1.4i X-Handles: MS6-6BONE, MS18417-RIPE X-RIPE-Spam-Status: NONE ; -1047 X-RIPE-Spam-Level: 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 On Thu, Oct 03, 2002 at 09:04:04AM +0100, Ian Dowse wrote: > See the patch I posted in: > > http://www.FreeBSD.org/cgi/getmsg.cgi?fetch=0+6285+/usr/local/www/db/text/2002/freebsd-emulation/20020908.freebsd-emulation > > There may still be further issues, but it allowed me to use vmware2 > on a current from a week or two ago. That's only for virtual disks, and that is not where the problem is (was). For most people this is not a solution. I have an almost-ready patch that implements linux_read() syscall. This will check if we are reading from a raw disk and in that case it will enlarge the read() to the next sector boundary. I have it working in the kernel but I have problems returning the right read buffer to userland. Mark -- Mark Santcroos RIPE Network Coordination Centre http://www.ripe.net/home/mark/ New Projects Group/TTM To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message