zoneadmd.h (5576:600b6e9b3a5b) zoneadmd.h (5829:20241b1ccadc)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 6 unchanged lines hidden (view full) ---

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 6 unchanged lines hidden (view full) ---

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27#ifndef _ZONEADMD_H
28#define _ZONEADMD_H
29
30#pragma ident "%Z%%M% %I% %E% SMI"
31

--- 74 unchanged lines hidden (view full) ---

106 Z_EVT_ZONE_BOOTFAILED,
107 Z_EVT_ZONE_BADARGS
108} zone_evt_t;
109
110extern int eventstream_init();
111extern void eventstream_write(zone_evt_t evt);
112
113/*
24 * Use is subject to license terms.
25 */
26
27#ifndef _ZONEADMD_H
28#define _ZONEADMD_H
29
30#pragma ident "%Z%%M% %I% %E% SMI"
31

--- 74 unchanged lines hidden (view full) ---

106 Z_EVT_ZONE_BOOTFAILED,
107 Z_EVT_ZONE_BADARGS
108} zone_evt_t;
109
110extern int eventstream_init();
111extern void eventstream_write(zone_evt_t evt);
112
113/*
114 * Zone mount styles. Boot is the standard mount we do when booting the zone,
115 * scratch is the standard scratch zone mount for upgrade and update is a
116 * variation on the scratch zone where we don't lofs mount the zone's /etc
117 * and /var back into the scratch zone so that we can then do an
118 * 'update on attach' within the scratch zone.
119 */
120typedef enum {
121 Z_MNT_BOOT = 0,
122 Z_MNT_SCRATCH,
123 Z_MNT_UPDATE
124} zone_mnt_t;
125
126/*
114 * Virtual platform interfaces.
115 */
127 * Virtual platform interfaces.
128 */
116extern zoneid_t vplat_create(zlog_t *, boolean_t);
117extern int vplat_bringup(zlog_t *, boolean_t, zoneid_t);
129extern zoneid_t vplat_create(zlog_t *, zone_mnt_t);
130extern int vplat_bringup(zlog_t *, zone_mnt_t, zoneid_t);
118extern int vplat_teardown(zlog_t *, boolean_t, boolean_t);
119
120/*
121 * Filesystem mounting interfaces.
122 */
123extern int valid_mount_path(zlog_t *, const char *, const char *,
124 const char *, const char *);
125extern int make_one_dir(zlog_t *, const char *, const char *,

--- 27 unchanged lines hidden ---
131extern int vplat_teardown(zlog_t *, boolean_t, boolean_t);
132
133/*
134 * Filesystem mounting interfaces.
135 */
136extern int valid_mount_path(zlog_t *, const char *, const char *,
137 const char *, const char *);
138extern int make_one_dir(zlog_t *, const char *, const char *,

--- 27 unchanged lines hidden ---