summaryrefslogtreecommitdiff
path: root/bin/chio/chio.conf.5
blob: f33a82f7787d9f3a86e77e9eecc986ecbbbb24a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
.\"	$OpenBSD: chio.conf.5,v 1.2 2020/02/10 13:18:20 schwarze Exp $
.\"
.\" Copyright (c) 2007 Jason McIntyre <jmc@openbsd.org>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.\"
.Dd $Mdocdate: February 10 2020 $
.Dt CHIO.CONF 5
.Os
.Sh NAME
.Nm chio.conf
.Nd medium changer configuration file
.Sh DESCRIPTION
.Nm
is used to configure some aspects of
.Xr chio 1 ,
a medium changer.
.Pp
The configuration file consists of a series of stanzas,
one per changer,
enclosed in curly braces.
Empty lines and lines beginning with
.Sq #
in either file are ignored.
.Pp
The following aspects may be configured:
.Bl -tag -width Ds
.It Ic drive
Provides a non-default mapping between
.Xr st 4
devices and changer drives.
For example,
to map drive 0 to rst3 and drive 1 to rst2, for changer
.Pa /dev/ch0 :
.Bd -literal -offset indent
changer ch0 {
	drive rst3
	drive rst2
}
.Ed
.El
.Sh FILES
.Bl -tag -width /etc/examples/chio.conf -compact
.It /dev/ch0
Default changer device.
.It /etc/chio.conf
Default location for
.Xr chio 1
configuration file.
.It /etc/examples/chio.conf
Example configuration file.
.El
.Sh SEE ALSO
.Xr chio 1 ,
.Xr mt 1
.Sh HISTORY
The
.Nm
file format first appeared in
.Ox 4.0 .