From owner-freebsd-current Mon Dec 15 00:02:40 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA02821 for current-outgoing; Mon, 15 Dec 1997 00:02:40 -0800 (PST) (envelope-from owner-freebsd-current) Received: from smtp04.primenet.com (smtp04.primenet.com [206.165.6.134]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA02806 for ; Mon, 15 Dec 1997 00:02:32 -0800 (PST) (envelope-from tlambert@usr09.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.8/8.8.8) id BAA19829; Mon, 15 Dec 1997 01:05:49 -0700 (MST) Received: from usr09.primenet.com(206.165.6.209) via SMTP by smtp04.primenet.com, id smtpd019775; Mon Dec 15 01:05:32 1997 Received: (from tlambert@localhost) by usr09.primenet.com (8.8.5/8.8.5) id BAA29005; Mon, 15 Dec 1997 01:01:41 -0700 (MST) From: Terry Lambert Message-Id: <199712150801.BAA29005@usr09.primenet.com> Subject: Re: DEVFS: new sample code To: grog@lemis.com (Greg Lehey) Date: Mon, 15 Dec 1997 08:01:41 +0000 (GMT) Cc: julian@whistle.com, bde@zeta.org.au, current@FreeBSD.ORG In-Reply-To: <19971214104251.63209@lemis.com> from "Greg Lehey" at Dec 14, 97 10:42:51 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > It ain't going to get done there it's getting done in a layer just below, > > and in conjunction with, the disk label layer. The disklabel layer notices > > the bad144 flag and sticks the bad144 'wedge' below itself. the bad144 has > > no business being lower than that because it doesn't cover other slices. > > They may have their own badblock handlers. > > I don't understand why slices should have any notion of bad blocks. > The way I see it, a slice is a virtual disk, and virtual disks are > immaculate. Bad blocks are a fact of life of the dirty > representations of our idealized disks. A slice is a linear array of sectors. A bad block SLICE layer is a layer which represents an imperfect linear array of sectors as a smaller, but perfect, linear array of sectors. For BSD disklabels, this "media perfection layer" should live at the same level as a "CCD agregation layer". Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.