xref: /onnv-gate/usr/src/lib/libbrand/dtd/zone_platform.dtd.1 (revision 3448:aaf16568054b)
12712Snn35248<?xml version='1.0' encoding='UTF-8' ?>
22712Snn35248
32712Snn35248<!--
42712Snn35248 CDDL HEADER START
52712Snn35248
62712Snn35248 The contents of this file are subject to the terms of the
72712Snn35248 Common Development and Distribution License (the "License").
82712Snn35248 You may not use this file except in compliance with the License.
92712Snn35248
102712Snn35248 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
112712Snn35248 or http://www.opensolaris.org/os/licensing.
122712Snn35248 See the License for the specific language governing permissions
132712Snn35248 and limitations under the License.
142712Snn35248
152712Snn35248 When distributing Covered Code, include this CDDL HEADER in each
162712Snn35248 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
172712Snn35248 If applicable, add the following below this CDDL HEADER, with the
182712Snn35248 fields enclosed by brackets "[]" replaced with your own identifying
192712Snn35248 information: Portions Copyright [yyyy] [name of copyright owner]
202712Snn35248
212712Snn35248 CDDL HEADER END
222712Snn35248
23*3448Sdh155122 Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
242712Snn35248 Use is subject to license terms.
252712Snn35248
262712Snn35248 ident	"%Z%%M%	%I%	%E% SMI"
272712Snn35248
282712Snn35248 DO NOT EDIT THIS FILE.
292712Snn35248-->
302712Snn35248
312712Snn35248<!--
322712Snn35248  device
332712Snn35248
342712Snn35248    Defines a device (or set of devices) to be exported into the zone.
352712Snn35248
362712Snn35248    Its attributes are
372712Snn35248
382712Snn35248      match	Pattern to match under /dev.  Follows fnmatch(3c) rules.
392712Snn35248		The following replacements are performed:
402712Snn35248			%z	Name of zone
412712Snn35248
422712Snn35248      name	Name of device in non-global zone.  This is optional; the
432712Snn35248		default is the same name as the global zone.
442712Snn35248
452712Snn35248      arch	Identifies devices only available for certain architectures.
462712Snn35248		Can be "sparc" or "i386".
472712Snn35248
48*3448Sdh155122      ip-type	Optional, identifies devices only available for certain IP
49*3448Sdh155122		types. Can be "shared" or "exclusive". If it's not specified,
50*3448Sdh155122		the default value "all" will be used, which means it's
51*3448Sdh155122		available regardless the IP type.
52*3448Sdh155122
532712Snn35248    For example, the following entry:
542712Snn35248	<device match="brand/windows/foo" name="bar" arch="sparc" />
552712Snn35248    would result in mapping the following global zone device:
562712Snn35248	/dev/brand/windows/foo
57*3448Sdh155122    into the zone (disregarding its IP type) as:
582712Snn35248	/dev/bar
592712Snn35248    but the mapping would only exist on sparc machines.
602712Snn35248
612712Snn35248-->
622712Snn35248<!ELEMENT device	EMPTY >
632712Snn35248
642712Snn35248<!ATTLIST device	match	CDATA #REQUIRED
652712Snn35248			name	CDATA ""
66*3448Sdh155122			arch	( sparc | i386 ) "all"
67*3448Sdh155122			ip-type	( shared | exclusive ) "all" >
682712Snn35248
692712Snn35248<!--
702712Snn35248  symlink
712712Snn35248
722712Snn35248    Defines a symlink to be created under /dev.
732712Snn35248
742712Snn35248    Its attributes are
752712Snn35248
762712Snn35248      source	Link source
772712Snn35248
782712Snn35248      target	Link target
792712Snn35248-->
802712Snn35248<!ELEMENT symlink	EMPTY >
812712Snn35248
822712Snn35248<!ATTLIST symlink	source	CDATA #REQUIRED
832712Snn35248			target	CDATA #REQUIRED >
842712Snn35248
852712Snn35248<!--
862712Snn35248  global_mount
872712Snn35248
882712Snn35248    Describes a filesystem that must be mounted before the zone is booted.
892712Snn35248    This mount is performed by a thread executing in the the context of
902712Snn35248    the global zone.
912712Snn35248
922712Snn35248    Its attributes are
932712Snn35248
942712Snn35248      special	The special device as used by the mount command.
952712Snn35248		This path is relative to the global zone.
962712Snn35248		The following replacements are performed:
972712Snn35248			%R	Root of zone
982712Snn35248
992712Snn35248      directory	The directory where it will be mounted.
1002712Snn35248		This path is relative to the non-global zone.
1012712Snn35248
1022712Snn35248      type	The filesystem type
1032712Snn35248-->
1042712Snn35248<!ELEMENT global_mount	EMPTY >
1052712Snn35248
1062712Snn35248<!ATTLIST global_mount	special		CDATA #REQUIRED
1072712Snn35248			directory	CDATA #REQUIRED
1082712Snn35248			opt		CDATA ""
1092712Snn35248			type		CDATA #REQUIRED>
1102712Snn35248
1112712Snn35248<!--
1122712Snn35248  mount
1132712Snn35248
1142712Snn35248    Describes a filesystem that must be mounted before the zone is booted.
1152712Snn35248    This mount is performed by a thread executing in the the context of
1162712Snn35248    the non-global zone.
1172712Snn35248
1182712Snn35248    Its attributes are
1192712Snn35248
1202712Snn35248      special	The special device as used by the mount command
1212712Snn35248		This path is relative to the non-global zone.
1222712Snn35248
1232712Snn35248      directory	The directory where it will be mounted.
1242712Snn35248		This path is relative to the non-global zone.
1252712Snn35248
1262712Snn35248      type	The filesystem type
1272712Snn35248-->
1282712Snn35248<!ELEMENT mount	EMPTY >
1292712Snn35248
1302712Snn35248<!ATTLIST mount	special		CDATA #REQUIRED
1312712Snn35248				directory	CDATA #REQUIRED
1322712Snn35248				opt		CDATA ""
1332712Snn35248				type		CDATA #REQUIRED>
1342712Snn35248
1352712Snn35248<!--
1362712Snn35248  platform
1372712Snn35248
1382712Snn35248    The toplevel container for a virtual platform configuration.  The virtual
1392712Snn35248    platform describes the basic elements to bring up the necessary services
1402712Snn35248    (filesystems, devices, etc) to boot the zone.
1412712Snn35248
1422712Snn35248    Its attributes are
1432712Snn35248
1442712Snn35248      name	The name of the brand.  This must match the name of the
1452712Snn35248		directory in which this file is stored, as well as the name
1462712Snn35248		of the brand that refers to it.
147*3448Sdh155122      allow-exclusive-ip	Whether the zones of this brand can have their
148*3448Sdh155122				own exclusive IP stack. It is a boolean value.
1492712Snn35248-->
1502712Snn35248<!ELEMENT platform	(device | global_mount | mount | symlink)* >
1512712Snn35248
152*3448Sdh155122<!ATTLIST platform	name			CDATA #REQUIRED
153*3448Sdh155122			allow-exclusive-ip	(true | false) #REQUIRED>
154