From owner-cvs-all Sun Jan 26 22:36: 2 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0157C37B401; Sun, 26 Jan 2003 22:36:01 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FDA543F18; Sun, 26 Jan 2003 22:36:00 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h0R6ZmQl015854; Mon, 27 Jan 2003 07:35:58 +0100 (CET) (envelope-from phk@freebsd.org) To: Nate Lawson Cc: cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sbin/disklabel disklabel.c From: phk@freebsd.org In-Reply-To: Your message of "Sun, 26 Jan 2003 22:32:20 PST." Date: Mon, 27 Jan 2003 07:35:48 +0100 Message-ID: <15853.1043649348@critter.freebsd.dk> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message , Nate Lawson wri tes: >On Sun, 26 Jan 2003 phk@freebsd.org wrote: >> Robert Watson writes: >> >We've always had a problem with ioctl's operating on storage devices >> >regardless of the open mode (and permitted access modes) for the devidce >> >nodes. >> >> And it ain't going to get any better as we get more weird "disks" >> in the GEOM framwork. > >I'm not sure why boot block/disk label writes can't be done as ordinary >writes and semantic checking performed by whichever GEOM layer thinks it >knows best about that portion of a disk. What is wrong with that >approach? It doesn't work without running a lot of special-case testing code, possibly several times, on each and every disk I/O request. Considering how often people update their bootblocks, this would be a totally unacceptable tradeoff. -- 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message