86 lines
3.4 KiB
Groff
86 lines
3.4 KiB
Groff
.\" $NetBSD: ahdi_buildlabel.3,v 1.1 2000/02/05 20:40:36 jdc Exp $
|
|
.\"
|
|
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
|
|
.\" All rights reserved.
|
|
.\"
|
|
.\" This code is derived from software contributed to The NetBSD Foundation
|
|
.\" by Julian Coleman.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the NetBSD
|
|
.\" Foundation, Inc. and its contributors.
|
|
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
.\" contributors may be used to endorse or promote products derived
|
|
.\" from this software without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
.\"
|
|
.Dd January 5, 2000
|
|
.Dt ahdi_buildlabel 3
|
|
.Sh NAME
|
|
.Nm ahdi_buildlabel
|
|
.Nd build AHDI partition label
|
|
.Sh LIBRARY
|
|
.Lb libahdi
|
|
.Sh SYNOPSIS
|
|
.Fd #include <libahdi.h>
|
|
.Ft int
|
|
.Fn ahdi_buildlabel "struct ahdi_ptable *ptable"
|
|
.Sh DESCRIPTION
|
|
The
|
|
.Nm
|
|
function builds a label suitable for use on AHDI partitioned disk. If the
|
|
total number of partitions is greater than four, it will make the first
|
|
three partitions primary partitions and the others extended partitions.
|
|
If the total number of partitions is four or less, the function will make
|
|
all the partitions primary partitions.
|
|
.Pp
|
|
If passed a partition table containing primary and/or extended partitions,
|
|
these will be modified, if necessary, to conform to the above specifications.
|
|
If there are no primary or extended partitions in the partition table, they
|
|
will be created. In both cases, the start sector of partitions may be
|
|
modified in order to leave space for any auxiliary root sectors.
|
|
.Sh DIAGNOSTICS
|
|
The
|
|
.Nm
|
|
function returns the following codes:
|
|
.Bl -column "Code" "Meaning" -offset indent
|
|
.It Em Code Ta Em Meaning
|
|
.It Li 1 Ta
|
|
Partition table was modified.
|
|
.It Li 0 Ta
|
|
Partition table was not modified.
|
|
.El
|
|
.Sh SEE ALSO
|
|
.Xr ahdi_checklabel 3 ,
|
|
.Xr ahdi_readlabel 3 ,
|
|
.Xr ahdi_writedisktab 3 ,
|
|
.Xr ahdi_writelabel 3 ,
|
|
.Xr ahdi 4
|
|
.Sh HISTORY
|
|
The
|
|
.Nm libahdi
|
|
package appeared in
|
|
.Nx 1.5 .
|
|
.Sh AUTHORS
|
|
.An Julian Coleman, Waldi Ravens, Leo Weppelman
|