xref: /illumos-gate/usr/src/lib/libbrand/dtd/zone_platform.dtd.1 (revision 60a3f738d56f92ae8b80e4b62a2331c6e1f2311f)
1<?xml version='1.0' encoding='UTF-8' ?>
2
3<!--
4 CDDL HEADER START
5
6 The contents of this file are subject to the terms of the
7 Common Development and Distribution License (the "License").
8 You may not use this file except in compliance with the License.
9
10 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 or http://www.opensolaris.org/os/licensing.
12 See the License for the specific language governing permissions
13 and limitations under the License.
14
15 When distributing Covered Code, include this CDDL HEADER in each
16 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 If applicable, add the following below this CDDL HEADER, with the
18 fields enclosed by brackets "[]" replaced with your own identifying
19 information: Portions Copyright [yyyy] [name of copyright owner]
20
21 CDDL HEADER END
22
23 Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24 Use is subject to license terms.
25
26 ident	"%Z%%M%	%I%	%E% SMI"
27
28 DO NOT EDIT THIS FILE.
29-->
30
31<!--
32  device
33
34    Defines a device (or set of devices) to be exported into the zone.
35
36    Its attributes are
37
38      match	Pattern to match under /dev.  Follows fnmatch(3c) rules.
39		The following replacements are performed:
40			%z	Name of zone
41
42      name	Name of device in non-global zone.  This is optional; the
43		default is the same name as the global zone.
44
45      arch	Identifies devices only available for certain architectures.
46		Can be "sparc" or "i386".
47
48    For example, the following entry:
49	<device match="brand/windows/foo" name="bar" arch="sparc" />
50    would result in mapping the following global zone device:
51	/dev/brand/windows/foo
52    into the zone as:
53	/dev/bar
54    but the mapping would only exist on sparc machines.
55
56-->
57<!ELEMENT device	EMPTY >
58
59<!ATTLIST device	match	CDATA #REQUIRED
60			name	CDATA ""
61			arch	( sparc | i386 ) "all" >
62
63<!--
64  symlink
65
66    Defines a symlink to be created under /dev.
67
68    Its attributes are
69
70      source	Link source
71
72      target	Link target
73-->
74<!ELEMENT symlink	EMPTY >
75
76<!ATTLIST symlink	source	CDATA #REQUIRED
77			target	CDATA #REQUIRED >
78
79<!--
80  global_mount
81
82    Describes a filesystem that must be mounted before the zone is booted.
83    This mount is performed by a thread executing in the the context of
84    the global zone.
85
86    Its attributes are
87
88      special	The special device as used by the mount command.
89		This path is relative to the global zone.
90		The following replacements are performed:
91			%R	Root of zone
92
93      directory	The directory where it will be mounted.
94		This path is relative to the non-global zone.
95
96      type	The filesystem type
97-->
98<!ELEMENT global_mount	EMPTY >
99
100<!ATTLIST global_mount	special		CDATA #REQUIRED
101			directory	CDATA #REQUIRED
102			opt		CDATA ""
103			type		CDATA #REQUIRED>
104
105<!--
106  mount
107
108    Describes a filesystem that must be mounted before the zone is booted.
109    This mount is performed by a thread executing in the the context of
110    the non-global zone.
111
112    Its attributes are
113
114      special	The special device as used by the mount command
115		This path is relative to the non-global zone.
116
117      directory	The directory where it will be mounted.
118		This path is relative to the non-global zone.
119
120      type	The filesystem type
121-->
122<!ELEMENT mount	EMPTY >
123
124<!ATTLIST mount	special		CDATA #REQUIRED
125				directory	CDATA #REQUIRED
126				opt		CDATA ""
127				type		CDATA #REQUIRED>
128
129<!--
130  platform
131
132    The toplevel container for a virtual platform configuration.  The virtual
133    platform describes the basic elements to bring up the necessary services
134    (filesystems, devices, etc) to boot the zone.
135
136    Its attributes are
137
138      name	The name of the brand.  This must match the name of the
139		directory in which this file is stored, as well as the name
140		of the brand that refers to it.
141-->
142<!ELEMENT platform	(device | global_mount | mount | symlink)* >
143
144<!ATTLIST platform	name		CDATA #REQUIRED>
145