From owner-cvs-all Thu May 9 13:23: 9 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A9F5437B416; Thu, 9 May 2002 13:22:59 -0700 (PDT) Received: (from obrien@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g49KMxZ94992; Thu, 9 May 2002 13:22:59 -0700 (PDT) (envelope-from obrien) Message-Id: <200205092022.g49KMxZ94992@freefall.freebsd.org> From: "David E. O'Brien" Date: Thu, 9 May 2002 13:22:59 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys sun_disklabel.h X-FreeBSD-CVS-Branch: HEAD 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 obrien 2002/05/09 13:22:59 PDT Added files: sys/sys sun_disklabel.h Log: Add a hack (ported from NetBSD) to support Sun disk labels. This code works by converting the Sun label to a struct disklabel, which is probably even the right thing for reading a label. The original checksum is taken over, so that the label source can be distinguished. The NetBSD code to wrap a BSD-style disklabel into the Sun disklabel has been deleted for now - don't know whether that is really desirable, after all Sun disklabels could just be used always (BSD disklabels are going to have problems with PROM compatability). The dsinit() call in diskopen() has been #ifdef'ed out for now, this will be changed to use the minimal slice struct in case of dsinit() failure. Submitted by: tmm Obtained from: NetBSD Revision Changes Path 1.1 +101 -0 src/sys/sys/sun_disklabel.h (new) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message