From owner-freebsd-arch@FreeBSD.ORG Mon Oct 6 15:36:38 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3873116A4B3 for ; Mon, 6 Oct 2003 15:36:38 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4378343FD7 for ; Mon, 6 Oct 2003 15:36:32 -0700 (PDT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.9/8.12.9) with ESMTP id h96MaU2B026940; Tue, 7 Oct 2003 00:36:30 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: Mark Valentine From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 06 Oct 2003 23:20:06 -0000." <200310062220.h96MK7PI061345@dotar.thuvia.org> Date: Tue, 07 Oct 2003 00:36:30 +0200 Message-ID: <26939.1065479790@critter.freebsd.dk> cc: arch@freebsd.org cc: Garrett Wollman Subject: Re: Alignment of disk-I/O from userland. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2003 22:36:38 -0000 In message <200310062220.h96MK7PI061345@dotar.thuvia.org>, Mark Valentine write s: >It would be reasonable to enforce such restrictions on a raw device if >we still had block devices around, but it doesn't seem reasonable now. It would be reasonable to make such a statement if you could demonstrate an actual application which must depend on this to work. The fact is that we currently do not offer any guarantee for disk-I/O even correctly reporting failure, unless your memory buffer is aligned according to driver specific requirements. And yet things still work. If I thought there would be any significant breakage (of non-shitty code), I would not be in doubt as to what the right thing to do would be :-) If shitty code breaks, I don't care. We're trying to raise the standard in and with FreeBSD, we're not trying to lower the bar to make any visual basic programmer pass. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.