]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a hack (ported from NetBSD) to support Sun disk labels.
authorDavid E. O'Brien <obrien@FreeBSD.org>
Thu, 9 May 2002 20:22:59 +0000 (20:22 +0000)
committerDavid E. O'Brien <obrien@FreeBSD.org>
Thu, 9 May 2002 20:22:59 +0000 (20:22 +0000)
commit39ebfeb05b9c455601368a1bac8ed8a50f2eab39
tree3c8c8546ac009dd3bcd498b7cdf1c83e3765a8d2
parenta9caffba47330999d0e4dec55fe455deecc5bcbb
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
sys/sys/sun_disklabel.h [new file with mode: 0644]