author | Alasdair Lumsden <al@everycity.co.uk> |
Sat, 10 Sep 2011 02:50:50 +0000 | |
branch | oi_151a |
changeset 1430 | 398513b48d4c |
parent 852 | d4a0239a3745 |
permissions | -rw-r--r-- |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
1 |
/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
2 |
* CDDL HEADER START |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
3 |
* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
4 |
* The contents of this file are subject to the terms of the |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
5 |
* Common Development and Distribution License (the "License"). |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
6 |
* You may not use this file except in compliance with the License. |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
7 |
* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
8 |
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
9 |
* or http://www.opensolaris.org/os/licensing. |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
10 |
* See the License for the specific language governing permissions |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
11 |
* and limitations under the License. |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
12 |
* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
13 |
* When distributing Covered Code, include this CDDL HEADER in each |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
14 |
* file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
15 |
* If applicable, add the following below this CDDL HEADER, with the |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
16 |
* fields enclosed by brackets "[]" replaced with your own identifying |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
17 |
* information: Portions Copyright [yyyy] [name of copyright owner] |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
18 |
* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
19 |
* CDDL HEADER END |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
20 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
21 |
/* |
852
d4a0239a3745
15678 /etc/default/kbd is to be obsoleted by 6944480, installers need to be accommodated
Jan Damborsky <jan.damborsky@sun.com>
parents:
810
diff
changeset
|
22 |
* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
23 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
24 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
25 |
#ifndef _ORCHESTRATOR_API_H |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
26 |
#define _ORCHESTRATOR_API_H |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
27 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
28 |
#ifdef __cplusplus |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
29 |
extern "C" { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
30 |
#endif |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
31 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
32 |
#include <sys/dktp/fdisk.h> |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
33 |
#include <sys/vtoc.h> |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
34 |
#include <libnvpair.h> |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
35 |
|
667
808a042e4938
1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents:
635
diff
changeset
|
36 |
#define OM_NUMPART (FD_NUMPART + MAX_EXT_PARTS) |
808a042e4938
1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents:
635
diff
changeset
|
37 |
|
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
38 |
extern int16_t om_errno; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
39 |
typedef int16_t om_handle_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
40 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
41 |
/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
42 |
* Callbacks definitions and functions |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
43 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
44 |
typedef enum { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
45 |
OM_TARGET_TARGET_DISCOVERY = 0, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
46 |
OM_SYSTEM_VALIDATION, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
47 |
OM_INSTALL_TYPE, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
48 |
OM_UPGRADE_TYPE, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
49 |
OM_TOOLS_INSTALL_TYPE |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
50 |
} om_callback_type_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
51 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
52 |
typedef enum { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
53 |
OM_DISK_DISCOVERY = 0, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
54 |
OM_PARTITION_DISCOVERY, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
55 |
OM_SLICE_DISCOVERY, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
56 |
OM_UPGRADE_TARGET_DISCOVERY, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
57 |
OM_INSTANCE_DISCOVERY, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
58 |
OM_TARGET_INSTANTIATION, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
59 |
OM_UPGRADE_CHECK, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
60 |
OM_SOFTWARE_UPDATE, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
61 |
OM_POSTINSTAL_TASKS, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
62 |
OM_INSTALLER_FAILED |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
63 |
} om_milestone_type_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
64 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
65 |
typedef struct om_callback_info { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
66 |
int num_milestones; /* number to track for op */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
67 |
om_milestone_type_t curr_milestone; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
68 |
om_callback_type_t callback_type; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
69 |
int16_t percentage_done; |
68
02c453401f20
910 - Progress bar text specified in back-end module
William Schumann <william.schumann@sun.com>
parents:
63
diff
changeset
|
70 |
const char *message; /* progress text for GUI */ |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
71 |
} om_callback_info_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
72 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
73 |
typedef void (*om_callback_t)(om_callback_info_t *, uintptr_t); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
74 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
75 |
typedef enum { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
76 |
OM_DTYPE_UNKNOWN = 0, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
77 |
OM_DTYPE_ATA, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
78 |
OM_DTYPE_SCSI, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
79 |
OM_DTYPE_FIBRE, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
80 |
OM_DTYPE_USB, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
81 |
OM_DTYPE_SATA, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
82 |
OM_DTYPE_FIREWIRE |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
83 |
} om_disk_type_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
84 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
85 |
typedef enum { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
86 |
OM_CTYPE_UNKNOWN = 0, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
87 |
OM_CTYPE_SOLARIS, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
88 |
OM_CTYPE_LINUXSWAP, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
89 |
OM_CTYPE_LINUX |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
90 |
} om_content_type_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
91 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
92 |
typedef enum { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
93 |
OM_LABEL_UNKNOWN = 0, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
94 |
OM_LABEL_VTOC, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
95 |
OM_LABEL_GPT, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
96 |
OM_LABEL_FDISK |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
97 |
} om_disklabel_type_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
98 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
99 |
typedef enum { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
100 |
OM_INSTANCE_UFS = 1, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
101 |
OM_INSTANCE_ZFS |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
102 |
} om_instance_type_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
103 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
104 |
typedef enum { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
105 |
OM_UPGRADE_UNKNOWN_ERROR = 2000, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
106 |
OM_UPGRADE_INSTANCE_IS_MIRROR, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
107 |
OM_UPGRADE_NG_ZONE_CONFIURE_PROBLEM, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
108 |
OM_UPGRADE_RELEASE_NOT_SUPPORTED, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
109 |
OM_UPGRADE_RELEASE_INFO_MISSING, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
110 |
OM_UPGRADE_INSTANCE_INCOMPLETE, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
111 |
OM_UPGRADE_ROOT_FS_CORRUPTED, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
112 |
OM_UPGRADE_MOUNT_ROOT_FAILED, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
113 |
OM_UPGRADE_MOUNT_VAR_FAILED, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
114 |
OM_UPGRADE_MISSING_CLUSTER_FILE, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
115 |
OM_UPGRADE_MISSING_CLUSTERTOC_FILE, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
116 |
OM_UPGRADE_MISSING_BOOTENVRC_FILE, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
117 |
OM_UPGRADE_WRONG_METACLUSTER |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
118 |
} om_upgrade_message_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
119 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
120 |
typedef enum { |
174
4f3d43790c55
1173 Possible to have two instances of installer GUI running at once
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents:
144
diff
changeset
|
121 |
OM_PROC_SUCCESS, |
4f3d43790c55
1173 Possible to have two instances of installer GUI running at once
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents:
144
diff
changeset
|
122 |
OM_PROC_INFO_ERR, |
4f3d43790c55
1173 Possible to have two instances of installer GUI running at once
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents:
144
diff
changeset
|
123 |
OM_PROC_DIR_ERR, |
4f3d43790c55
1173 Possible to have two instances of installer GUI running at once
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents:
144
diff
changeset
|
124 |
OM_PROC_ALREADY_RUNNING, |
4f3d43790c55
1173 Possible to have two instances of installer GUI running at once
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents:
144
diff
changeset
|
125 |
OM_PROC_NOT_RUNNING |
4f3d43790c55
1173 Possible to have two instances of installer GUI running at once
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents:
144
diff
changeset
|
126 |
} om_proc_return_t; |
4f3d43790c55
1173 Possible to have two instances of installer GUI running at once
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents:
144
diff
changeset
|
127 |
|
4f3d43790c55
1173 Possible to have two instances of installer GUI running at once
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents:
144
diff
changeset
|
128 |
typedef enum { |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
129 |
OM_UNASSIGNED = 0, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
130 |
OM_BOOT, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
131 |
OM_ROOT, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
132 |
OM_SWAP, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
133 |
OM_USR, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
134 |
OM_BACKUP, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
135 |
OM_STAND, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
136 |
OM_VAR, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
137 |
OM_HOME, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
138 |
OM_ALTSCTR, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
139 |
OM_CACHE, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
140 |
OM_RESERVED |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
141 |
} om_slice_tag_type_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
142 |
|
810
8f09387744e3
8661 AI fails to continue installation if slices exist from previous configuration
William Schumann <william.schumann@sun.com>
parents:
789
diff
changeset
|
143 |
/* |
8f09387744e3
8661 AI fails to continue installation if slices exist from previous configuration
William Schumann <william.schumann@sun.com>
parents:
789
diff
changeset
|
144 |
* on AI slice create action, if slice with specified number already exists, |
8f09387744e3
8661 AI fails to continue installation if slices exist from previous configuration
William Schumann <william.schumann@sun.com>
parents:
789
diff
changeset
|
145 |
* determine behavior: |
8f09387744e3
8661 AI fails to continue installation if slices exist from previous configuration
William Schumann <william.schumann@sun.com>
parents:
789
diff
changeset
|
146 |
* - error (default) - treat as configuration error and halt installation |
8f09387744e3
8661 AI fails to continue installation if slices exist from previous configuration
William Schumann <william.schumann@sun.com>
parents:
789
diff
changeset
|
147 |
* - overwrite - supersede existing definition with new |
8f09387744e3
8661 AI fails to continue installation if slices exist from previous configuration
William Schumann <william.schumann@sun.com>
parents:
789
diff
changeset
|
148 |
*/ |
8f09387744e3
8661 AI fails to continue installation if slices exist from previous configuration
William Schumann <william.schumann@sun.com>
parents:
789
diff
changeset
|
149 |
typedef enum { |
8f09387744e3
8661 AI fails to continue installation if slices exist from previous configuration
William Schumann <william.schumann@sun.com>
parents:
789
diff
changeset
|
150 |
OM_ON_EXISTING_ERROR = 0, |
8f09387744e3
8661 AI fails to continue installation if slices exist from previous configuration
William Schumann <william.schumann@sun.com>
parents:
789
diff
changeset
|
151 |
OM_ON_EXISTING_OVERWRITE |
8f09387744e3
8661 AI fails to continue installation if slices exist from previous configuration
William Schumann <william.schumann@sun.com>
parents:
789
diff
changeset
|
152 |
} om_on_existing_t; |
8f09387744e3
8661 AI fails to continue installation if slices exist from previous configuration
William Schumann <william.schumann@sun.com>
parents:
789
diff
changeset
|
153 |
|
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
154 |
typedef enum { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
155 |
OM_INITIAL_INSTALL = 1, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
156 |
OM_UPGRADE |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
157 |
} om_install_type_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
158 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
159 |
typedef struct disk_info { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
160 |
char *disk_name; /* For example c0t0d0 */ |
679
2f04e6d1a235
5451 No way to permanently target specific disk in AI engine manifest
Jan Damborsky <jan.damborsky@sun.com>
parents:
667
diff
changeset
|
161 |
char *disk_volname; /* volume name */ |
2f04e6d1a235
5451 No way to permanently target specific disk in AI engine manifest
Jan Damborsky <jan.damborsky@sun.com>
parents:
667
diff
changeset
|
162 |
char *disk_devid; /* device ID */ |
2f04e6d1a235
5451 No way to permanently target specific disk in AI engine manifest
Jan Damborsky <jan.damborsky@sun.com>
parents:
667
diff
changeset
|
163 |
char *disk_device_path; /* device path */ |
233
77e7268f9c10
3448 GUI needs to be enhanced in order to support +1TB phase 1 project
Jan Damborsky <jan.damborsky@sun.com>
parents:
229
diff
changeset
|
164 |
uint32_t disk_size; /* Usable size in MB */ |
77e7268f9c10
3448 GUI needs to be enhanced in order to support +1TB phase 1 project
Jan Damborsky <jan.damborsky@sun.com>
parents:
229
diff
changeset
|
165 |
uint32_t disk_size_total; /* Total size in MB */ |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
166 |
om_disk_type_t disk_type; /* SCSI, IDE, USB etc. */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
167 |
char *vendor; /* Manufacturer */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
168 |
boolean_t boot_disk; /* Is it a boot disk? */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
169 |
om_disklabel_type_t label; /* disk label */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
170 |
boolean_t removable; /* Is it removable (USB?) */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
171 |
char *serial_number; /* Manufacturer assigned */ |
74
ba240cbcdf1c
833 TI, TD, orchestrator has to be enhanced for Slim and DC
Jan Damborsky <Jan.Damborsky@Sun.COM>
parents:
69
diff
changeset
|
172 |
uint32_t disk_cyl_size; /* Cylinder Size in sectors */ |
ba240cbcdf1c
833 TI, TD, orchestrator has to be enhanced for Slim and DC
Jan Damborsky <Jan.Damborsky@Sun.COM>
parents:
69
diff
changeset
|
173 |
uint64_t disk_size_sec; /* Disk size in sectors */ |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
174 |
struct disk_info *next; /* pointer to next disk */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
175 |
} disk_info_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
176 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
177 |
typedef struct { |
667
808a042e4938
1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents:
635
diff
changeset
|
178 |
uint8_t partition_id; |
808a042e4938
1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents:
635
diff
changeset
|
179 |
/* |
808a042e4938
1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents:
635
diff
changeset
|
180 |
* corresponds to fdisk partition number N in device name format ctdpN |
808a042e4938
1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents:
635
diff
changeset
|
181 |
* 1 : (FD_NUMPARTS + MAX_EXT_PARTS)) |
808a042e4938
1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents:
635
diff
changeset
|
182 |
*/ |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
183 |
uint32_t partition_size; /* Size in MB */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
184 |
uint32_t partition_offset; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
185 |
/* Offset in MB from start of the disk */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
186 |
uint8_t partition_order; /* Order in the disk */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
187 |
uint8_t partition_type; /* Solaris/linux swap/X86boot */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
188 |
om_content_type_t content_type; /* Solaris/Linux */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
189 |
boolean_t active; /* Is the partition active */ |
74
ba240cbcdf1c
833 TI, TD, orchestrator has to be enhanced for Slim and DC
Jan Damborsky <Jan.Damborsky@Sun.COM>
parents:
69
diff
changeset
|
190 |
uint64_t partition_size_sec; /* Size in sectors */ |
ba240cbcdf1c
833 TI, TD, orchestrator has to be enhanced for Slim and DC
Jan Damborsky <Jan.Damborsky@Sun.COM>
parents:
69
diff
changeset
|
191 |
uint64_t partition_offset_sec; /* offset in sectors */ |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
192 |
} partition_info_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
193 |
|
667
808a042e4938
1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents:
635
diff
changeset
|
194 |
|
808a042e4938
1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents:
635
diff
changeset
|
195 |
/* |
808a042e4938
1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents:
635
diff
changeset
|
196 |
* show information for all partitions on disk |
808a042e4938
1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents:
635
diff
changeset
|
197 |
* indexed by partition number as N in the device name: ctdpN, |
808a042e4938
1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents:
635
diff
changeset
|
198 |
* but zero-based, so pinfo[N-1].partition_id == N |
808a042e4938
1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents:
635
diff
changeset
|
199 |
*/ |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
200 |
typedef struct { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
201 |
char *disk_name; /* Disk Name for look up */ |
667
808a042e4938
1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents:
635
diff
changeset
|
202 |
partition_info_t pinfo[OM_NUMPART]; /* fdisk */ |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
203 |
} disk_parts_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
204 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
205 |
typedef struct { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
206 |
uint8_t slice_id; /* sdisk id (0-15) */ |
255
a784211e9b2f
3603 Auto Installer needs interfaces to edit slices, partitions
William Schumann <william.schumann@sun.com>
parents:
233
diff
changeset
|
207 |
uint64_t slice_size; /* Size in sectors */ |
a784211e9b2f
3603 Auto Installer needs interfaces to edit slices, partitions
William Schumann <william.schumann@sun.com>
parents:
233
diff
changeset
|
208 |
uint64_t slice_offset; /* in sectors */ |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
209 |
om_slice_tag_type_t tag; /* root/swap/unassigned etc. */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
210 |
uint8_t flags; /* RO/RW, (un)mountable */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
211 |
} slice_info_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
212 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
213 |
typedef struct { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
214 |
uint8_t partition_id; /* For look up, only for X86 */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
215 |
char *disk_name; /* Disk Name for look up */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
216 |
slice_info_t sinfo[NDKMAP]; /* vtoc slices */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
217 |
} disk_slices_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
218 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
219 |
typedef struct { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
220 |
char *disk_name; /* Where the Instance resides */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
221 |
uint8_t slice; /* Which Slice (0-15) */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
222 |
boolean_t svm_configured; /* Part of SVM root */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
223 |
char *svm_info; /* mirror components */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
224 |
} ufs_instance_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
225 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
226 |
typedef struct { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
227 |
char *pool_name; /* More info will be added */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
228 |
} zfs_instance_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
229 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
230 |
typedef struct upgrade_info { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
231 |
om_instance_type_t instance_type; /* UFS or ZFS */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
232 |
union { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
233 |
ufs_instance_t uinfo; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
234 |
zfs_instance_t zinfo; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
235 |
} instance; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
236 |
char *solaris_release; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
237 |
/* Some thing like "Solaris Developer Express Release 1" */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
238 |
boolean_t zones_installed; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
239 |
/* Non global zones configured in the Solaris Instance */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
240 |
boolean_t upgradable; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
241 |
/* Does the instance looks okay */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
242 |
om_upgrade_message_t upgrade_message_id; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
243 |
/* If an instance can't be upgraded, why? */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
244 |
char *incorrect_zone_list; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
245 |
/* List of non-globlal zones not configured correctly */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
246 |
struct upgrade_info *next; /* link to next Instance */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
247 |
} upgrade_info_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
248 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
249 |
typedef struct locale_info { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
250 |
char *locale_name; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
251 |
char *locale_desc; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
252 |
boolean_t def_locale; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
253 |
struct locale_info *next; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
254 |
} locale_info_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
255 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
256 |
typedef struct lang_info { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
257 |
/* pointer to all locale_info_t's for language */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
258 |
locale_info_t *locale_info; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
259 |
boolean_t def_lang; /* Is this the default language */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
260 |
char *lang; /* language code name, i.e, 'en' */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
261 |
int n_locales; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
262 |
/* Fully expanded language name, translated appropriately */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
263 |
char *lang_name; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
264 |
struct lang_info *next; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
265 |
} lang_info_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
266 |
|
437
e50d6a19f5d2
5656 Have AI engine place new partition of specified size in best location
William Schumann <william.schumann@sun.com>
parents:
405
diff
changeset
|
267 |
typedef enum { |
e50d6a19f5d2
5656 Have AI engine place new partition of specified size in best location
William Schumann <william.schumann@sun.com>
parents:
405
diff
changeset
|
268 |
/* |
e50d6a19f5d2
5656 Have AI engine place new partition of specified size in best location
William Schumann <william.schumann@sun.com>
parents:
405
diff
changeset
|
269 |
* select algorithm for partition allocation |
e50d6a19f5d2
5656 Have AI engine place new partition of specified size in best location
William Schumann <william.schumann@sun.com>
parents:
405
diff
changeset
|
270 |
* in om_validate_and_resize_partitions() |
e50d6a19f5d2
5656 Have AI engine place new partition of specified size in best location
William Schumann <william.schumann@sun.com>
parents:
405
diff
changeset
|
271 |
* |
e50d6a19f5d2
5656 Have AI engine place new partition of specified size in best location
William Schumann <william.schumann@sun.com>
parents:
405
diff
changeset
|
272 |
* in the GUI scheme, starting offsets for new partitions are |
e50d6a19f5d2
5656 Have AI engine place new partition of specified size in best location
William Schumann <william.schumann@sun.com>
parents:
405
diff
changeset
|
273 |
* computed in om_validate_and_resize_partitions() |
e50d6a19f5d2
5656 Have AI engine place new partition of specified size in best location
William Schumann <william.schumann@sun.com>
parents:
405
diff
changeset
|
274 |
* |
e50d6a19f5d2
5656 Have AI engine place new partition of specified size in best location
William Schumann <william.schumann@sun.com>
parents:
405
diff
changeset
|
275 |
* for AI,the starting offsets are either chosen by the user or |
e50d6a19f5d2
5656 Have AI engine place new partition of specified size in best location
William Schumann <william.schumann@sun.com>
parents:
405
diff
changeset
|
276 |
* computed when the create action is issued |
e50d6a19f5d2
5656 Have AI engine place new partition of specified size in best location
William Schumann <william.schumann@sun.com>
parents:
405
diff
changeset
|
277 |
* before om_validate_and_resize_partitions() is called |
e50d6a19f5d2
5656 Have AI engine place new partition of specified size in best location
William Schumann <william.schumann@sun.com>
parents:
405
diff
changeset
|
278 |
*/ |
e50d6a19f5d2
5656 Have AI engine place new partition of specified size in best location
William Schumann <william.schumann@sun.com>
parents:
405
diff
changeset
|
279 |
GUI_allocation = 1, |
459
56b6b042a167
5653 AI manifest should offer keyword to use max available space for partition/slice
William Schumann <william.schumann@sun.com>
parents:
457
diff
changeset
|
280 |
AI_allocation |
437
e50d6a19f5d2
5656 Have AI engine place new partition of specified size in best location
William Schumann <william.schumann@sun.com>
parents:
405
diff
changeset
|
281 |
} partition_allocation_scheme_t; |
e50d6a19f5d2
5656 Have AI engine place new partition of specified size in best location
William Schumann <william.schumann@sun.com>
parents:
405
diff
changeset
|
282 |
|
459
56b6b042a167
5653 AI manifest should offer keyword to use max available space for partition/slice
William Schumann <william.schumann@sun.com>
parents:
457
diff
changeset
|
283 |
/* |
56b6b042a167
5653 AI manifest should offer keyword to use max available space for partition/slice
William Schumann <william.schumann@sun.com>
parents:
457
diff
changeset
|
284 |
* testing breakpoints - calls exit(2) at designated points in code |
56b6b042a167
5653 AI manifest should offer keyword to use max available space for partition/slice
William Schumann <william.schumann@sun.com>
parents:
457
diff
changeset
|
285 |
*/ |
56b6b042a167
5653 AI manifest should offer keyword to use max available space for partition/slice
William Schumann <william.schumann@sun.com>
parents:
457
diff
changeset
|
286 |
typedef enum { |
56b6b042a167
5653 AI manifest should offer keyword to use max available space for partition/slice
William Schumann <william.schumann@sun.com>
parents:
457
diff
changeset
|
287 |
OM_no_breakpoint = 0, |
56b6b042a167
5653 AI manifest should offer keyword to use max available space for partition/slice
William Schumann <william.schumann@sun.com>
parents:
457
diff
changeset
|
288 |
OM_breakpoint_before_TI, |
56b6b042a167
5653 AI manifest should offer keyword to use max available space for partition/slice
William Schumann <william.schumann@sun.com>
parents:
457
diff
changeset
|
289 |
OM_breakpoint_after_TI |
56b6b042a167
5653 AI manifest should offer keyword to use max available space for partition/slice
William Schumann <william.schumann@sun.com>
parents:
457
diff
changeset
|
290 |
} om_breakpoint_t; |
56b6b042a167
5653 AI manifest should offer keyword to use max available space for partition/slice
William Schumann <william.schumann@sun.com>
parents:
457
diff
changeset
|
291 |
|
635
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
292 |
/* |
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
293 |
* failure structure - it contains error code and related strings desribing |
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
294 |
* where and why the failure happened |
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
295 |
*/ |
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
296 |
typedef struct om_failure { |
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
297 |
int code; |
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
298 |
|
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
299 |
char *source; /* where the failure happened */ |
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
300 |
char *reason; /* why the failure happened */ |
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
301 |
} om_failure_t; |
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
302 |
|
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
303 |
|
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
304 |
#define OM_PREINSTALL 1 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
305 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
306 |
#define ONEMB 1048576 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
307 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
308 |
#define OM_SUCCESS 0 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
309 |
#define OM_FAILURE -1 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
310 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
311 |
#define OM_UNKNOWN_STRING "unknown" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
312 |
#define OM_PARTITION_UNKNOWN 99 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
313 |
#define OM_SLICE_UNKNOWN 99 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
314 |
#define OM_INVALID_MILESTONE -1 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
315 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
316 |
#define OM_MIN_MEDIA_SIZE 8192 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
317 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
318 |
#define OM_MAX_VOL_NUM 1 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
319 |
|
311
7ec66097ab2e
4074 AI preserve slice will not work if install slice is not specified
William Schumann <william.schumann@sun.com>
parents:
272
diff
changeset
|
320 |
#define OM_CPIO_TRANSFER 0 |
272
6ffbbcf6242a
3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
255
diff
changeset
|
321 |
#define OM_IPS_TRANSFER 1 |
6ffbbcf6242a
3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
255
diff
changeset
|
322 |
|
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
323 |
/* |
459
56b6b042a167
5653 AI manifest should offer keyword to use max available space for partition/slice
William Schumann <william.schumann@sun.com>
parents:
457
diff
changeset
|
324 |
* allocate maximum possible size for slice or partition |
56b6b042a167
5653 AI manifest should offer keyword to use max available space for partition/slice
William Schumann <william.schumann@sun.com>
parents:
457
diff
changeset
|
325 |
*/ |
56b6b042a167
5653 AI manifest should offer keyword to use max available space for partition/slice
William Schumann <william.schumann@sun.com>
parents:
457
diff
changeset
|
326 |
#define OM_MAX_SIZE 0 |
56b6b042a167
5653 AI manifest should offer keyword to use max available space for partition/slice
William Schumann <william.schumann@sun.com>
parents:
457
diff
changeset
|
327 |
|
56b6b042a167
5653 AI manifest should offer keyword to use max available space for partition/slice
William Schumann <william.schumann@sun.com>
parents:
457
diff
changeset
|
328 |
/* |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
329 |
* Attributes for nv_list to pass data to perform install/upgrade |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
330 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
331 |
#define OM_ATTR_INSTALL_TYPE "install_type" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
332 |
#define OM_ATTR_UPGRADE_TARGET "upgrade_target" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
333 |
#define OM_ATTR_DISK_NAME "disk_name" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
334 |
#define OM_ATTR_TIMEZONE_INFO "timezone" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
335 |
#define OM_ATTR_DEFAULT_LOCALE "default_locale" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
336 |
#define OM_ATTR_HOST_NAME "host_name" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
337 |
#define OM_ATTR_ROOT_PASSWORD "root_password" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
338 |
#define OM_ATTR_USER_NAME "user_name" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
339 |
#define OM_ATTR_LOGIN_NAME "login_name" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
340 |
#define OM_ATTR_USER_PASSWORD "user_password" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
341 |
#define OM_ATTR_LOCALES_LIST "locales_list" |
272
6ffbbcf6242a
3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
255
diff
changeset
|
342 |
#define OM_ATTR_TRANSFER "transfer_params" |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
343 |
#define OM_ATTR_INSTALL_TEST "install_test" |
789
282f473d34ee
10115 AI ignores desired swap listed in ai manifest
Matt Keenan <matt.keenan@sun.com>
parents:
771
diff
changeset
|
344 |
#define OM_ATTR_SWAP_SIZE "swap_size" |
282f473d34ee
10115 AI ignores desired swap listed in ai manifest
Matt Keenan <matt.keenan@sun.com>
parents:
771
diff
changeset
|
345 |
#define OM_ATTR_DUMP_SIZE "dump_size" |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
346 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
347 |
#define OM_DEFAULT_ROOT_PASSWORD "" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
348 |
#define OM_DEFAULT_USER_PASSWORD "" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
349 |
/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
350 |
* Target discovery - Disk related error ids |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
351 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
352 |
#define OM_TD_DISCOVERY_FAILED 101 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
353 |
#define OM_DISCOVERY_NEEDED 102 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
354 |
#define OM_NO_DISKS_FOUND 103 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
355 |
#define OM_TD_IN_PROGRESS 104 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
356 |
#define OM_NO_PARTITION_FOUND 105 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
357 |
#define OM_NO_SPACE 106 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
358 |
#define OM_INVALID_DISK_PARTITION 107 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
359 |
#define OM_NO_UPGRADE_TARGETS_FOUND 108 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
360 |
#define OM_FORMAT_UNKNOWN 109 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
361 |
#define OM_BAD_DISK_NAME 110 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
362 |
#define OM_CONFIG_EXCEED_DISK_SIZE 111 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
363 |
#define OM_NO_UPGRADE_TARGET_NAME 112 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
364 |
#define OM_UNSUPPORTED_CONFIG 113 |
94
fd4991588edd
1010 - Target Instantiation progress doesn't display in GUI
William Schumann <william.schumann@sun.com>
parents:
84
diff
changeset
|
365 |
#define OM_TRANSFER_FAILED 114 |
98
e6f4c48366dc
1013 TI shouldn't destroy 'rpool' on other than target disk
Jan Damborsky <Jan.Damborsky@Sun.COM>
parents:
94
diff
changeset
|
366 |
#define OM_ZFS_ROOT_POOL_EXISTS 115 |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
367 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
368 |
#define OM_NO_INSTALL_TARGET 201 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
369 |
#define OM_BAD_INSTALL_TARGET 202 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
370 |
#define OM_NO_INSTALL_TYPE 203 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
371 |
#define OM_BAD_INSTALL_TYPE 204 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
372 |
#define OM_INITIAL_INSTALL_PROFILE_FAILED 205 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
373 |
#define OM_INITIAL_INSTALL_FAILED 206 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
374 |
#define OM_SIZE_IS_SMALL 207 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
375 |
#define OM_TARGET_INSTANTIATION_FAILED 208 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
376 |
#define OM_NO_TARGET_ATTRS 209 |
229
9e8783c6042e
1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
191
diff
changeset
|
377 |
#define OM_NO_HOSTNAME_ATTRS 210 |
9e8783c6042e
1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
191
diff
changeset
|
378 |
#define OM_NO_UNAME_ATTRS 211 |
9e8783c6042e
1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
191
diff
changeset
|
379 |
#define OM_NO_LNAME_ATTRS 212 |
9e8783c6042e
1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
191
diff
changeset
|
380 |
#define OM_NO_UPASSWD_ATTRS 213 |
9e8783c6042e
1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
191
diff
changeset
|
381 |
#define OM_NO_RPASSWD_ATTRS 214 |
9e8783c6042e
1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
191
diff
changeset
|
382 |
#define OM_NO_HOSTNAME 215 |
9e8783c6042e
1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
191
diff
changeset
|
383 |
#define OM_NO_UNAME 216 |
9e8783c6042e
1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
191
diff
changeset
|
384 |
#define OM_NO_LNAME 217 |
9e8783c6042e
1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
191
diff
changeset
|
385 |
#define OM_NO_UPASSWD 218 |
9e8783c6042e
1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
191
diff
changeset
|
386 |
#define OM_NO_RPASSWD 219 |
311
7ec66097ab2e
4074 AI preserve slice will not work if install slice is not specified
William Schumann <william.schumann@sun.com>
parents:
272
diff
changeset
|
387 |
#define OM_SLICES_OVERLAP 220 |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
388 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
389 |
#define OM_NO_UPGRADE_TARGET 301 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
390 |
#define OM_BAD_UPGRADE_TARGET 302 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
391 |
#define OM_NOT_UFS_UPGRADE_TARGET 303 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
392 |
#define OM_UPGRADE_PROFILE_FAILED 304 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
393 |
#define OM_UPGRADE_FAILED 305 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
394 |
#define OM_CANNOT_LOAD_MEDIA 306 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
395 |
#define OM_NOT_ENOUGH_SPACE 307 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
396 |
#define OM_SPACE_CHECK_FAILURE 308 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
397 |
#define OM_CANNOT_UMOUNT_ROOT_SWAP 309 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
398 |
#define OM_UPGRADE_NOT_ALLOWED 310 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
399 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
400 |
#define OM_ERROR_THREAD_CREATE 901 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
401 |
#define OM_NO_PROGRESS_FILE 902 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
402 |
#define OM_NO_PROCESS 903 |
566
3d7530f2d94f
789 Remove the pfinstall references in liborchestrator
Jean McCormack <Jean.McCormack@Sun.COM>
parents:
539
diff
changeset
|
403 |
#define OM_INVALID_USER 904 |
3d7530f2d94f
789 Remove the pfinstall references in liborchestrator
Jean McCormack <Jean.McCormack@Sun.COM>
parents:
539
diff
changeset
|
404 |
#define OM_TOOLS_INSTALL_FAILURE 905 |
3d7530f2d94f
789 Remove the pfinstall references in liborchestrator
Jean McCormack <Jean.McCormack@Sun.COM>
parents:
539
diff
changeset
|
405 |
#define OM_MISSING_TOOLS_SCRIPT 906 |
3d7530f2d94f
789 Remove the pfinstall references in liborchestrator
Jean McCormack <Jean.McCormack@Sun.COM>
parents:
539
diff
changeset
|
406 |
#define OM_CANT_CREATE_VTOC_TARGET 907 |
3d7530f2d94f
789 Remove the pfinstall references in liborchestrator
Jean McCormack <Jean.McCormack@Sun.COM>
parents:
539
diff
changeset
|
407 |
#define OM_CANT_CREATE_ZPOOL 908 |
3d7530f2d94f
789 Remove the pfinstall references in liborchestrator
Jean McCormack <Jean.McCormack@Sun.COM>
parents:
539
diff
changeset
|
408 |
#define OM_CANT_CREATE_ZVOL 909 |
3d7530f2d94f
789 Remove the pfinstall references in liborchestrator
Jean McCormack <Jean.McCormack@Sun.COM>
parents:
539
diff
changeset
|
409 |
#define OM_ALREADY_EXISTS 910 |
3d7530f2d94f
789 Remove the pfinstall references in liborchestrator
Jean McCormack <Jean.McCormack@Sun.COM>
parents:
539
diff
changeset
|
410 |
#define OM_PROTECTED 911 |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
411 |
#define OM_BAD_INPUT 999 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
412 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
413 |
/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
414 |
* Locale, language discovery related error codes |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
415 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
416 |
#define OM_NO_LOCALE_DIR 401 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
417 |
#define OM_PERMS 402 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
418 |
#define OM_TOO_MANY_FD 403 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
419 |
#define OM_FOUND 404 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
420 |
#define OM_NO_LOCALES 405 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
421 |
#define OM_NOT_LANG 406 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
422 |
#define OM_INVALID_LANG_LIST 407 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
423 |
#define OM_INVALID_LOCALE 408 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
424 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
425 |
/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
426 |
* Timezone related error codes |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
427 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
428 |
#define OM_TIMEZONE_NOT_SET 600 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
429 |
#define OM_INVALID_TIMEZONE 601 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
430 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
431 |
/* |
344
f6279fc734cf
4871 ICT failures are not reported as a failed installation
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents:
311
diff
changeset
|
432 |
* Install Completion Task related error codes |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
433 |
*/ |
344
f6279fc734cf
4871 ICT failures are not reported as a failed installation
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents:
311
diff
changeset
|
434 |
#define OM_ICT_FAILURE 800 |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
435 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
436 |
/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
437 |
* Nodename/hostname failures |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
438 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
439 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
440 |
#define OM_SET_NODENAME_FAILURE 500 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
441 |
#define OM_NO_SUCH_DB_FILE 501 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
442 |
#define OM_CANT_OPEN_FILE 502 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
443 |
#define OM_CANT_CREATE_TMP_FILE 503 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
444 |
#define OM_CANT_WRITE_TMP_FILE 504 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
445 |
#define OM_CANT_WRITE_FILE 505 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
446 |
#define OM_SETNODE_FAILURE 506 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
447 |
#define OM_INVALID_NODENAME 507 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
448 |
#define OM_CANT_DUP_DESC 508 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
449 |
#define OM_EEPROM_ERROR 509 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
450 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
451 |
#define OM_CANT_EXEC 1001 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
452 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
453 |
/* disk_target.c */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
454 |
om_handle_t om_initiate_target_discovery(om_callback_t td_cb); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
455 |
void om_free_target_data(om_handle_t handle); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
456 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
457 |
/* disk_info.c */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
458 |
disk_info_t *om_get_disk_info(om_handle_t handle, int *total); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
459 |
void om_free_disk_info(om_handle_t handle, disk_info_t *dinfo); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
460 |
disk_info_t *om_duplicate_disk_info(om_handle_t handle, disk_info_t *dinfo); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
461 |
disk_info_t **om_convert_linked_disk_info_to_array(om_handle_t handle, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
462 |
disk_info_t *dinfo, int total); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
463 |
void om_free_disk_info_array(om_handle_t handle, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
464 |
disk_info_t **dinfo); |
679
2f04e6d1a235
5451 No way to permanently target specific disk in AI engine manifest
Jan Damborsky <jan.damborsky@sun.com>
parents:
667
diff
changeset
|
465 |
disk_info_t *om_get_boot_disk(disk_info_t *disk_list); |
2f04e6d1a235
5451 No way to permanently target specific disk in AI engine manifest
Jan Damborsky <jan.damborsky@sun.com>
parents:
667
diff
changeset
|
466 |
disk_info_t *om_find_disk_by_ctd_name(disk_info_t *disk_list, |
2f04e6d1a235
5451 No way to permanently target specific disk in AI engine manifest
Jan Damborsky <jan.damborsky@sun.com>
parents:
667
diff
changeset
|
467 |
char *ctd_name); |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
468 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
469 |
/* disk_parts.c */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
470 |
disk_parts_t *om_get_disk_partition_info(om_handle_t handle, char *diskname); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
471 |
void om_free_disk_partition_info(om_handle_t handle, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
472 |
disk_parts_t *dpinfo); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
473 |
disk_parts_t *om_validate_and_resize_disk_partitions(om_handle_t handle, |
437
e50d6a19f5d2
5656 Have AI engine place new partition of specified size in best location
William Schumann <william.schumann@sun.com>
parents:
405
diff
changeset
|
474 |
disk_parts_t *dpinfo, partition_allocation_scheme_t); |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
475 |
disk_parts_t *om_duplicate_disk_partition_info(om_handle_t handle, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
476 |
disk_parts_t *dparts); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
477 |
int om_set_disk_partition_info(om_handle_t handle, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
478 |
disk_parts_t *dp); |
667
808a042e4938
1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents:
635
diff
changeset
|
479 |
boolean_t om_create_partition(uint8_t, uint64_t, uint64_t, boolean_t, |
808a042e4938
1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents:
635
diff
changeset
|
480 |
boolean_t); |
457
c7530e1b1ad2
5654 AI could allow deletion of existing fdisk partition by number
William Schumann <william.schumann@sun.com>
parents:
449
diff
changeset
|
481 |
boolean_t om_delete_partition(uint8_t, uint64_t, uint64_t); |
363
130c19a9f4de
4233 target instantiation gets called multiple times which results in installation failure
William Schumann <william.schumann@sun.com>
parents:
344
diff
changeset
|
482 |
boolean_t om_finalize_fdisk_info_for_TI(void); |
311
7ec66097ab2e
4074 AI preserve slice will not work if install slice is not specified
William Schumann <william.schumann@sun.com>
parents:
272
diff
changeset
|
483 |
disk_parts_t *om_init_disk_partition_info(disk_info_t *); |
363
130c19a9f4de
4233 target instantiation gets called multiple times which results in installation failure
William Schumann <william.schumann@sun.com>
parents:
344
diff
changeset
|
484 |
void om_create_target_partition_info_if_absent(void); |
457
c7530e1b1ad2
5654 AI could allow deletion of existing fdisk partition by number
William Schumann <william.schumann@sun.com>
parents:
449
diff
changeset
|
485 |
void om_invalidate_slice_info(void); |
667
808a042e4938
1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents:
635
diff
changeset
|
486 |
boolean_t om_install_partition_is_logical(void); |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
487 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
488 |
/* disk_slices.c */ |
255
a784211e9b2f
3603 Auto Installer needs interfaces to edit slices, partitions
William Schumann <william.schumann@sun.com>
parents:
233
diff
changeset
|
489 |
disk_slices_t *om_get_slice_info(om_handle_t handle, char *diskname); |
405
785221d05f6b
4195 need to make changes to AI Engine for SPARC
William Schumann <william.schumann@sun.com>
parents:
363
diff
changeset
|
490 |
int om_get_device_target_info(uint8_t *slice_number, |
785221d05f6b
4195 need to make changes to AI Engine for SPARC
William Schumann <william.schumann@sun.com>
parents:
363
diff
changeset
|
491 |
char **diskname); |
255
a784211e9b2f
3603 Auto Installer needs interfaces to edit slices, partitions
William Schumann <william.schumann@sun.com>
parents:
233
diff
changeset
|
492 |
void om_free_disk_slice_info(om_handle_t handle, |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
493 |
disk_slices_t *dsinfo); |
255
a784211e9b2f
3603 Auto Installer needs interfaces to edit slices, partitions
William Schumann <william.schumann@sun.com>
parents:
233
diff
changeset
|
494 |
disk_slices_t *om_duplicate_slice_info(om_handle_t handle, |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
495 |
disk_slices_t *dslices); |
255
a784211e9b2f
3603 Auto Installer needs interfaces to edit slices, partitions
William Schumann <william.schumann@sun.com>
parents:
233
diff
changeset
|
496 |
int om_set_slice_info(om_handle_t, disk_slices_t *); |
810
8f09387744e3
8661 AI fails to continue installation if slices exist from previous configuration
William Schumann <william.schumann@sun.com>
parents:
789
diff
changeset
|
497 |
boolean_t om_create_slice(uint8_t, uint64_t, om_slice_tag_type_t, |
8f09387744e3
8661 AI fails to continue installation if slices exist from previous configuration
William Schumann <william.schumann@sun.com>
parents:
789
diff
changeset
|
498 |
om_on_existing_t); |
255
a784211e9b2f
3603 Auto Installer needs interfaces to edit slices, partitions
William Schumann <william.schumann@sun.com>
parents:
233
diff
changeset
|
499 |
boolean_t om_delete_slice(uint8_t); |
a784211e9b2f
3603 Auto Installer needs interfaces to edit slices, partitions
William Schumann <william.schumann@sun.com>
parents:
233
diff
changeset
|
500 |
boolean_t om_preserve_slice(uint8_t); |
a784211e9b2f
3603 Auto Installer needs interfaces to edit slices, partitions
William Schumann <william.schumann@sun.com>
parents:
233
diff
changeset
|
501 |
disk_slices_t *om_init_slice_info(const char *); |
405
785221d05f6b
4195 need to make changes to AI Engine for SPARC
William Schumann <william.schumann@sun.com>
parents:
363
diff
changeset
|
502 |
boolean_t om_finalize_vtoc_for_TI(uint8_t); |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
503 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
504 |
/* upgrade_target.c */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
505 |
upgrade_info_t *om_get_upgrade_targets(om_handle_t handle, uint16_t *found); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
506 |
upgrade_info_t *om_get_upgrade_targets_by_disk(om_handle_t handle, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
507 |
char *diskname, uint16_t *found); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
508 |
void om_free_upgrade_targets(om_handle_t handle, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
509 |
upgrade_info_t *uinfo); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
510 |
upgrade_info_t *om_duplicate_upgrade_targets(om_handle_t handle, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
511 |
upgrade_info_t *uiptr); |
77
26d71f52b10a
955 nightly fails to build slim gate after SU and fix for 833 were integrated
Jan Damborsky <Jan.Damborsky@Sun.COM>
parents:
74
diff
changeset
|
512 |
boolean_t om_is_upgrade_target_valid(om_handle_t handle, |
26d71f52b10a
955 nightly fails to build slim gate after SU and fix for 833 were integrated
Jan Damborsky <Jan.Damborsky@Sun.COM>
parents:
74
diff
changeset
|
513 |
upgrade_info_t *uinfo, om_callback_t ut_cb); |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
514 |
|
63
c1fdc489e0eb
811 GUI refuses to allow install to continue if user name is in /etc/passwd
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents:
40
diff
changeset
|
515 |
/* perform_slim_install.c */ |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
516 |
int om_perform_install(nvlist_t *uchoices, om_callback_t inst_cb); |
63
c1fdc489e0eb
811 GUI refuses to allow install to continue if user name is in /etc/passwd
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents:
40
diff
changeset
|
517 |
uint64_t om_get_min_size(char *media, char *distro); |
84
4bb57dfd1e77
968 Minimum disk size is smaller than it should be
niall@localhost
parents:
77
diff
changeset
|
518 |
uint64_t om_get_recommended_size(char *media, char *distro); |
233
77e7268f9c10
3448 GUI needs to be enhanced in order to support +1TB phase 1 project
Jan Damborsky <jan.damborsky@sun.com>
parents:
229
diff
changeset
|
519 |
uint32_t om_get_max_usable_disk_size(void); |
539
2d996f9b841a
7758 AI install always fails after swap slice is created
William Schumann <william.schumann@sun.com>
parents:
459
diff
changeset
|
520 |
boolean_t om_is_automated_installation(void); |
635
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
521 |
int om_unmount_target_be(void); |
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
522 |
|
233
77e7268f9c10
3448 GUI needs to be enhanced in order to support +1TB phase 1 project
Jan Damborsky <jan.damborsky@sun.com>
parents:
229
diff
changeset
|
523 |
|
63
c1fdc489e0eb
811 GUI refuses to allow install to continue if user name is in /etc/passwd
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents:
40
diff
changeset
|
524 |
uid_t om_get_user_uid(void); |
c1fdc489e0eb
811 GUI refuses to allow install to continue if user name is in /etc/passwd
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents:
40
diff
changeset
|
525 |
char *om_encrypt_passwd(char *passwd, char *username); |
459
56b6b042a167
5653 AI manifest should offer keyword to use max available space for partition/slice
William Schumann <william.schumann@sun.com>
parents:
457
diff
changeset
|
526 |
void om_set_breakpoint(om_breakpoint_t breakpoint); |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
527 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
528 |
/* locale.c */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
529 |
locale_info_t *om_get_def_locale(locale_info_t *loclist); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
530 |
lang_info_t *om_get_install_lang_info(int *total); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
531 |
char **om_get_install_lang_names(int *total); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
532 |
lang_info_t *om_get_lang_info(int *total); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
533 |
char **om_get_lang_names(int *total); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
534 |
locale_info_t *om_get_locale_info(char *lang, int *total); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
535 |
char **om_get_locale_names(char *lang, int *total); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
536 |
void om_save_locale(char *locale, boolean_t install_only); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
537 |
int om_set_install_lang_by_value(lang_info_t *localep); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
538 |
int om_set_install_lang_by_name(char *lang); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
539 |
int om_set_default_locale_by_name(char *locale); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
540 |
void om_free_lang_info(lang_info_t *langp); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
541 |
void om_free_lang_names(char **listp); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
542 |
void om_free_locale_info(locale_info_t *localep); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
543 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
544 |
/* timezone.c */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
545 |
int om_set_time_zone(char *timezone); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
546 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
547 |
/* om_misc.c */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
548 |
int16_t om_get_error(); |
635
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
549 |
void om_set_error(int16_t errno); |
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
550 |
char *om_get_failure_source(int16_t err_code); |
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
551 |
char *om_get_failure_reason(int16_t err_code); |
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
552 |
boolean_t om_is_valid_failure_code(int16_t err_code); |
74823d433dc4
6651 autoinstall needs more useful error messages from Orchestrator module
Jan Damborsky <jan.damborsky@sun.com>
parents:
566
diff
changeset
|
553 |
|
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
554 |
|
174
4f3d43790c55
1173 Possible to have two instances of installer GUI running at once
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents:
144
diff
changeset
|
555 |
/* om_proc.c */ |
4f3d43790c55
1173 Possible to have two instances of installer GUI running at once
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents:
144
diff
changeset
|
556 |
om_proc_return_t om_process_running(); |
4f3d43790c55
1173 Possible to have two instances of installer GUI running at once
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents:
144
diff
changeset
|
557 |
|
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
558 |
/* Test functions */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
559 |
int om_test_target_discovery(); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
560 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
561 |
#ifdef __cplusplus |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
562 |
} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
563 |
#endif |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
564 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
565 |
#endif /* _ORCHESTRATOR_API_H */ |