<?xml version='1.0' encoding='UTF-8' ?>

<!--
 Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 Use is subject to license terms.

 CDDL HEADER START

 The contents of this file are subject to the terms of the
 Common Development and Distribution License (the "License").
 You may not use this file except in compliance with the License.

 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
 or http://www.opensolaris.org/os/licensing.
 See the License for the specific language governing permissions
 and limitations under the License.

 When distributing Covered Code, include this CDDL HEADER in each
 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
 If applicable, add the following below this CDDL HEADER, with the
 fields enclosed by brackets "[]" replaced with your own identifying
 information: Portions Copyright [yyyy] [name of copyright owner]

 CDDL HEADER END

    ident	"@(#)zone_platform.dtd.1	1.3	06/03/08 SMI"
-->

<!--
  device

    Defines a device (or set of devices) to be exported into the zone.  There
    are two types of devices, matched and linked.  Matched devices are 
    inherited from the global zone, optionally placing it in a different 
    location. 

    Its attributes are

      match	Pattern to match under /dev.  Follows fnmatch(3c) rules.

      name	Name of device in local zone.  If this is a matched device,
		then this is optional; the default is the same name as the
		global zone.  This is required for linked devices.

      arch	Identifies devices only available for certain architectures.
		Can be "sparc" or "x86".   
-->
<!ELEMENT device	EMPTY >

<!ATTLIST device	match	CDATA #REQUIRED
			name	CDATA ""
			arch	CDATA "" >

<!--
  symlink

    Defines a symlink to be created under /dev.

    Its attributes are

      source	Link source

      target	Link target
-->
<!ELEMENT symlink	EMPTY >

<!ATTLIST symlink	source	CDATA	#REQUIRED
			target	CDATA	#REQUIRED >

<!--
  devdir

    Defines a directory to be created under /dev.

    Its attributes are

      path	Name of directory to be created

      mode	Mode (in octal) of directory
-->
<!ELEMENT devdir	EMPTY >

<!ATTLIST devdir	path	CDATA #REQUIRED
			mode	CDATA #REQUIRED >

<!--
  global_mount

    Describes a filesystem that must be mounted before the zone is booted.
    This mount is performed by a thread executing in the the context of
    the global zone.

    Its attributes are

      special	The special device as used by the mount command.
		This path is relative to the global zone.
		The following replacements are performed:
			%R	Root of zone

      directory	The directory where it will be mounted.
		This path is relative to the local zone.

      type	The filesystem type
-->
<!ELEMENT global_mount	EMPTY >

<!ATTLIST global_mount	special		CDATA #REQUIRED
			directory	CDATA #REQUIRED
			opt		CDATA ""
			type		CDATA #REQUIRED>

<!--
  local_mount

    Describes a filesystem that must be mounted before the zone is booted.
    This mount is performed by a thread executing in the the context of
    the local zone.

    Its attributes are

      special	The special device as used by the mount command
		This path is relative to the local zone.

      directory	The directory where it will be mounted.
		This path is relative to the local zone.

      type	The filesystem type
-->
<!ELEMENT local_mount	EMPTY >

<!ATTLIST local_mount	special		CDATA #REQUIRED
			directory	CDATA #REQUIRED
			opt		CDATA ""
			type		CDATA #REQUIRED>

<!--
  platform

    The toplevel container for a virtual platform configuration.  The virtual
    platform describes the basic elements to bring up the necessary services
    (filesystems, devices, etc) to boot the zone.

    Its attributes are

      name	The name of the brand.  This must match the name of the
		directory in which this file is stored, as well as the name
		of the brand that refers to it.
-->
<!ELEMENT platform	(devdir | device | global_mount | local_mount |
			symlink)* >

<!ATTLIST platform	name		CDATA #REQUIRED>
