xref: /netbsd-src/share/man/man4/dk.4 (revision 181254a7b1bdde6873432bffef2d2decc4b5c22f)
1.\"	$NetBSD: dk.4,v 1.7 2017/02/26 11:56:49 rin Exp $
2.\"
3.\" Copyright (c) 2006 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Jason R. Thorpe.
8.\"
9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions
11.\" are met:
12.\" 1. Redistributions of source code must retain the above copyright
13.\"    notice, this list of conditions and the following disclaimer.
14.\" 2. Redistributions in binary form must reproduce the above copyright
15.\"    notice, this list of conditions and the following disclaimer in the
16.\"    documentation and/or other materials provided with the distribution.
17.\"
18.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28.\" POSSIBILITY OF SUCH DAMAGE.
29.\"
30.\" Jonathan A. Kollasch used vnd(4) as the template for this man page.
31.\"
32.Dd February 26, 2017
33.Dt DK 4
34.Os
35.Sh NAME
36.Nm dk
37.Nd disk partition
38.Pq wedge
39driver
40.Sh SYNOPSIS
41.Cd "options DKWEDGE_AUTODISCOVER"
42.Cd "options DKWEDGE_METHOD_BSDLABEL"
43.Cd "options DKWEDGE_METHOD_GPT"
44.Cd "options DKWEDGE_METHOD_MBR"
45.Cd "options DKWEDGE_METHOD_RDB"
46.Sh DESCRIPTION
47The
48.Nm
49driver provides a disk-like interface, or
50.Em wedge ,
51to an area of a physical disk.
52Wedges may be configured manually with
53.Xr dkctl 8
54or automatically by the kernel upon the attachment of the physical disk.
55.Sh KERNEL OPTIONS
56.Bl -tag -width DKWEDGE_METHOD_BSDLABEL
57.It Dv DKWEDGE_AUTODISCOVER
58Automatically detect and configure wedges using any available methods.
59.It Dv DKWEDGE_METHOD_BSDLABEL
60BSD disklabel detection method.
61.It Dv DKWEDGE_METHOD_GPT
62Extensible Firmware Interface Globally Unique Identifier Partition Table
63(GPT) detection method.
64.It Dv DKWEDGE_METHOD_MBR
65IBM PC-compatible Master Boot Record (MBR) partitioning detection method,
66with support for Extended MBRs.
67.It Dv DKWEDGE_METHOD_RDB
68Amiga Rigid Disk Block (RDB) partitioning detection method.
69.El
70.Sh FILES
71.Bl -tag -width /dev/XXrXdkX -compact
72.It Pa /dev/{,r}dk*
73.Nm
74device special files.
75.El
76.Sh SEE ALSO
77.Xr config 1 ,
78.Xr disklabel 8 ,
79.Xr dkctl 8 ,
80.Xr fdisk 8 ,
81.Xr gpt 8 ,
82.Xr MAKEDEV 8
83.Sh HISTORY
84The
85.Nm
86driver first appeared in
87.Nx 3.0 .
88.Sh AUTHORS
89The
90.Nm
91driver was written by
92.An Jason R. Thorpe .
93