author | Jan Damborsky <jan.damborsky@sun.com> |
Fri, 07 Mar 2008 10:25:22 +0100 | |
changeset 26 | fb9b1fd08e73 |
parent 16 | c82dd8a4617c |
child 30 | 21835f70424f |
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 |
/* |
13 | 22 |
* Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
23 |
* Use is subject to license terms. |
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 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
26 |
#ifndef _ORCHESTRATOR_PRIVATE_H |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
27 |
#define _ORCHESTRATOR_PRIVATE_H |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
28 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
29 |
#pragma ident "@(#)orchestrator_private.h 1.12 07/10/23 SMI" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
30 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
31 |
#ifdef __cplusplus |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
32 |
extern "C" { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
33 |
#endif |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
34 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
35 |
#include <orchestrator_api.h> |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
36 |
#include <ls_api.h> |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
37 |
#include "ti_api.h" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
38 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
39 |
extern char *pre_inst_timezone; |
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 |
* Password/shadow file defines |
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 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
45 |
#define SHADOW_FILE "/etc/shadow" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
46 |
#define PASSWORD_FILE "/etc/passwd" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
47 |
#define TRANS_LIST "/etc/transfer_list" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
48 |
#define NODENAME "/etc/nodename" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
49 |
#define PATH_DEVNULL "/dev/null" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
50 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
51 |
#define INIT_FILE "/etc/default/init" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
52 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
53 |
#define MNTOPTS "ro" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
54 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
55 |
#define LOG_HOST "loghost" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
56 |
#define LOOPBACK_IP "127.0.0.1" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
57 |
#define HOSTS_TABLE "/etc/hosts" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
58 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
59 |
#define OVERWRITE_STR "OVERWRITE" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
60 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
61 |
#define KBDNAME "/dev/kbd" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
62 |
#define KBD_DEF_FILE "/etc/default/kbd" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
63 |
#define NVRAM_VAR "keyboard-layout" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
64 |
#define BUFSIZE 80 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
65 |
#define KBD_LAYOUT_FILE "/usr/share/lib/keytables/type_6/kbd_layouts" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
66 |
#define MAX_LAYOUT_NUM 128 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
67 |
#define TEXT_DOMAIN "SUNW_INSTALL_LIBORCHESTRATOR" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
68 |
#define MAX_LINE_SIZE 256 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
69 |
#define MAX_NUM_LANG 4096 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
70 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
71 |
#define MAX_LOCALE 40 |
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 |
#define BLOCKS_TO_MB 2048 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
74 |
#define MIN_ROOT_SIZE 8192 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
75 |
#define MAX_ROOT_SIZE 15360 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
76 |
#define HALF_GB_TO_MB 512 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
77 |
#define ONE_GB_TO_MB 1024 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
78 |
#define TWO_GB_TO_MB 2048 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
79 |
#define FOUR_GB_TO_MB 4096 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
80 |
#define EIGHT_GB_TO_MB 8192 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
81 |
#define TEN_GB_TO_MB 10240 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
82 |
#define TWENTY_GB_TO_MB 20480 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
83 |
#define THIRTY_GB_TO_MB 30720 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
84 |
#define OVERHEAD_IN_MB 100 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
85 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
86 |
#define streq(a, b) (strcmp((a), (b)) == 0) |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
87 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
88 |
#define SPARC_ARCH "sparc" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
89 |
#define X86_ARCH "i386" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
90 |
#define ALLDISKS "all" |
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 |
#define PART_UNDEFINED 0 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
93 |
#define SOLARIS "solaris" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
94 |
#define DOSPRIMARY "dosprimary" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
95 |
#define ROOT_FS "/" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
96 |
#define SECOND_ROOT_FS "/second_root" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
97 |
#define SWAP_FS "swap" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
98 |
#define EXPORT_FS "/export/home" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
99 |
#define FREE_KEYWORD "free" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
100 |
#define INSTALL_CMD "/usr/sbin/install.d/pfinstall" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
101 |
#define INSTALL_TEST_CMD "/usr/bin/dummy_install" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
102 |
#define TOOLS_CMD "/cdrom/DeveloperTools/main.sh" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
103 |
#define TOOLS_TEST_CMD "/usr/bin/dummy_tools_install" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
104 |
#define INSTALLED_ROOT_DIR "/a" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
105 |
#define GUI_INSTALL_LOG "gui-install_log" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
106 |
#define INSTALL_LOG "install_log" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
107 |
#define TRANSFER_LOG "transfer.log" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
108 |
#define PROFILE_NAME "profile" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
109 |
#define INSTALL_LOG_DIRECTORY "/var/sadm/install/logs" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
110 |
#define NSI_LOG_DIRECTORY "/var/sadm/system/nsi" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
111 |
#define PROGRESS_FILE "/tmp/install_update_progress.out" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
112 |
#define HOMEDIR_CREATE_FAILED "mkdir of %s returned error %d\n" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
113 |
#define BAD_DISK_SLICE "Bad disk slice %s\n" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
114 |
#define NSI_LOG_DIR_FAILED "Creating NSI log directory %s failed\n" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
115 |
#define NSI_OPENDIR_FAILED "Open of %s failed with error %d\n" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
116 |
#define NSI_OPENFILE_FAILED "Open of %s failed with error %d\n" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
117 |
#define NSI_CHDIR_FAILED "chdir to %s failed with error %d\n" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
118 |
#define NSI_CREATE_FILE_FAILED "Creating %s failed with error %d\n" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
119 |
#define NSI_CREATE_SLINK_FAILED "Creating symlink of %s failed with error %d\n" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
120 |
#define NSI_GETCWD_FAILED "getcwd() failed with error %d\n" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
121 |
#define NSI_TIME_FAILED "time() failed with error %d\n" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
122 |
#define NSI_MOVE_FILE "Moved %s to %s\n" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
123 |
#define NSI_LINK_FILE "Linked %s to %s\n" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
124 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
125 |
#define TMP_INITDEFSYSLOC "/tmp/.init.defSysLoc" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
126 |
#define TMP_DEFSYSLOC "/tmp/.defSysLoc" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
127 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
128 |
/* |
12
6b2b4780c964
137 shorter, shared name for default root pool
"Dave Miner <dave.miner@sun.com>"
parents:
0
diff
changeset
|
129 |
* Definitions for ZFS pool |
6b2b4780c964
137 shorter, shared name for default root pool
"Dave Miner <dave.miner@sun.com>"
parents:
0
diff
changeset
|
130 |
*/ |
6b2b4780c964
137 shorter, shared name for default root pool
"Dave Miner <dave.miner@sun.com>"
parents:
0
diff
changeset
|
131 |
#define ROOTPOOL_NAME "rpool" |
6b2b4780c964
137 shorter, shared name for default root pool
"Dave Miner <dave.miner@sun.com>"
parents:
0
diff
changeset
|
132 |
#define ROOTPOOL_SNAPSHOT ROOTPOOL_NAME "@install" |
6b2b4780c964
137 shorter, shared name for default root pool
"Dave Miner <dave.miner@sun.com>"
parents:
0
diff
changeset
|
133 |
|
6b2b4780c964
137 shorter, shared name for default root pool
"Dave Miner <dave.miner@sun.com>"
parents:
0
diff
changeset
|
134 |
/* |
16 | 135 |
* Initial BE name |
136 |
*/ |
|
137 |
#define INIT_BE_NAME "preview2" |
|
138 |
||
139 |
/* |
|
140 |
* Default file systems |
|
141 |
*/ |
|
142 |
#define ZFS_FS_NUM 1 |
|
143 |
#define ZFS_SHARED_FS_NUM 2 |
|
144 |
||
145 |
/* |
|
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
146 |
* Signature for the Install callbacks |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
147 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
148 |
#define PROGRESS_STATUS "<progressStatus" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
149 |
#define TARGET_INSTANTIATION_STATUS "<targetInstantiationStatus" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
150 |
#define POST_INSTALL_STATUS "<postInstallStatus" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
151 |
#define UPGRADE_SPACE_CHECK "<UpgradeSpaceCheck" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
152 |
#define INSTALLER_FAILED "<installerFailure" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
153 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
154 |
/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
155 |
* Debugging levels |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
156 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
157 |
#define OM_DBGLVL_EMERG LS_DBG_LVL_EMERG |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
158 |
#define OM_DBGLVL_ERR LS_DBGLVL_ERR |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
159 |
#define OM_DBGLVL_WARN LS_DBGLVL_WARN |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
160 |
#define OM_DBGLVL_INFO LS_DBGLVL_INFO |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
161 |
#define OM_DBGLVL_TRACE LS_DBGLVL_TRACE |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
162 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
163 |
#define MAX_TERM 256 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
164 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
165 |
int read_locale_file(FILE *fp, char *lang, char *lc_collate, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
166 |
char *lc_ctype, char *lc_messages, char *lc_monetary, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
167 |
char *lc_numeric, char *lc_time); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
168 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
169 |
/* Data from the state file */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
170 |
typedef struct { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
171 |
int configured; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
172 |
int bootparamed; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
173 |
int networked; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
174 |
int extnetwork; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
175 |
int autobound; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
176 |
int subnetted; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
177 |
int passwdset; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
178 |
int localeset; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
179 |
int security; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
180 |
int nfs4domain; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
181 |
char termtype[MAX_TERM+2]; /* I don't know why it's +2 */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
182 |
} sys_config; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
183 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
184 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
185 |
typedef struct disk_target { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
186 |
disk_info_t dinfo; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
187 |
/* Disk Characteristics like size, type etc. */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
188 |
disk_parts_t *dparts; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
189 |
/* fdisk partitions, valid only for X86 */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
190 |
disk_slices_t *dslices; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
191 |
/* Slice information like size, mount point etc. */ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
192 |
struct disk_target *next; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
193 |
} disk_target_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
194 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
195 |
typedef struct { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
196 |
char *locales; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
197 |
char *diskname; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
198 |
} initial_install_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
199 |
|
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 *slice; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
202 |
} upgrade_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
203 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
204 |
typedef struct { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
205 |
om_install_type_t operation; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
206 |
char *profile_name; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
207 |
union { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
208 |
initial_install_t install; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
209 |
upgrade_t upgrade; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
210 |
} install_type; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
211 |
} om_profile_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 |
om_install_type_t install_type; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
215 |
pid_t pid; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
216 |
} install_callback_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
217 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
218 |
typedef struct { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
219 |
int num_disks; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
220 |
} td_callback_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
221 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
222 |
typedef struct { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
223 |
char *target; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
224 |
} validate_callback_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 |
union { |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
228 |
install_callback_t install; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
229 |
td_callback_t td; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
230 |
validate_callback_t valid; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
231 |
} cb_type; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
232 |
om_callback_t cb; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
233 |
} callback_args_t; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
234 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
235 |
/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
236 |
* Global variables |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
237 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
238 |
extern disk_target_t *system_disks; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
239 |
extern disk_target_t *committed_disk_target; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
240 |
extern upgrade_info_t *solaris_instances; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
241 |
extern boolean_t disk_discovery_done; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
242 |
extern boolean_t disk_discovery_failed; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
243 |
extern int disks_total; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
244 |
extern int disks_found; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
245 |
extern int16_t om_errno; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
246 |
extern om_handle_t omh; |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
247 |
extern boolean_t whole_disk; /* slim install */ |
16 | 248 |
extern char *zfs_fs_names[ZFS_FS_NUM]; |
249 |
extern char *zfs_shared_fs_names[ZFS_SHARED_FS_NUM]; |
|
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
250 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
251 |
/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
252 |
* private prototypes |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
253 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
254 |
|
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 |
* om_misc.c |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
257 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
258 |
void om_set_error(int16_t value); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
259 |
void om_debug_print(ls_dbglvl_t dbg_lvl, char *fmt, ...); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
260 |
void om_log_print(char *fmt, ...); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
261 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
262 |
/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
263 |
* disk_target.c |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
264 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
265 |
void *handle_disk_discovery(void *args); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
266 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
267 |
/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
268 |
* disk_util.c |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
269 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
270 |
void local_free_disk_info(disk_info_t *dinfo, boolean_t follow_link); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
271 |
void local_free_part_info(disk_parts_t *dpinfo); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
272 |
void local_free_slice_info(disk_slices_t *dsinfo); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
273 |
void local_free_upgrade_info(upgrade_info_t *uinfo); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
274 |
int just_the_disk_name(char *dst, char *src); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
275 |
boolean_t is_diskname_valid(char *diskname); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
276 |
boolean_t is_slicename_valid(char *slicename); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
277 |
disk_target_t *find_disk_by_name(char *diskname); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
278 |
disk_parts_t *find_partitions_by_disk(char *diskname); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
279 |
disk_slices_t *find_slices_by_disk(char *diskname); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
280 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
281 |
/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
282 |
* perform_install.c |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
283 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
284 |
int create_pfinstall_profile(om_profile_t pf); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
285 |
int call_pfinstall(om_install_type_t install_type, |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
286 |
char *profile, om_callback_t cb); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
287 |
void *run_pfinstall(void *arg); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
288 |
void *handle_install_callback(void *arg); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
289 |
int call_tools_install(om_callback_t); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
290 |
void *run_tools_script(void *); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
291 |
void *handle_tools_install_callback(void *); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
292 |
int set_root_password(char *passwd); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
293 |
int set_user_name_password(char *user, char *login, char *passwd); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
294 |
int set_password_common(char *user, char *login, char *e_passwd); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
295 |
int set_hostname_nodename(char *hostname); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
296 |
boolean_t setup_profile_fdisk_entries(FILE *fp, char *diskname); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
297 |
boolean_t setup_profile_filesys_entries(FILE *fp, char *diskname); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
298 |
boolean_t setup_profile_locale_entries(FILE *fp, char *locales); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
299 |
int16_t get_the_percentage(char *str); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
300 |
int get_the_milestone(char *str); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
301 |
om_install_type_t get_user_install_type(char *file); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
302 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
303 |
/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
304 |
* system_util.c |
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 |
boolean_t is_system_sparc(); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
307 |
boolean_t is_system_x86(); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
308 |
char *create_dated_file(char *dir, char *filename); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
309 |
boolean_t copy_file(char *src, char *dest); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
310 |
boolean_t remove_and_relink(char *dir, char *src, char *dest); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
311 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
312 |
/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
313 |
* target_discovery.c |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
314 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
315 |
int start_td_disk_discover(int *ndisks); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
316 |
disk_target_t *get_td_disk_info_discover(int *ndisks, om_callback_t cb); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
317 |
void get_td_disk_parts_discover(disk_target_t *disks, om_callback_t cb); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
318 |
void get_td_disk_slices_discover(disk_target_t *disks, om_callback_t cb); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
319 |
upgrade_info_t *get_td_solaris_instances(om_callback_t cb); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
320 |
void send_discovery_complete_callback(om_callback_t cb); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
321 |
om_disk_type_t ctype_to_disktype_enum(char *str); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
322 |
disk_target_t *enumerate_next_disk(); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
323 |
upgrade_info_t *enumerate_next_instance(); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
324 |
disk_parts_t *enumerate_partitions(char *disk_name); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
325 |
disk_slices_t *enumerate_slices(char *disk_name); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
326 |
disk_parts_t *sort_partitions_by_offset(disk_parts_t *dp_ptr, int num); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
327 |
om_disk_type_t ctype_to_disktype_enum(char *str); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
328 |
om_upgrade_message_t convert_td_value_to_om_upgrade_message(uint32_t *value); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
329 |
|
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 |
* upgrade_target.c |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
332 |
*/ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
333 |
upgrade_info_t *copy_one_upgrade_target(upgrade_info_t *ui); |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
334 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
335 |
#ifdef __cplusplus |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
336 |
} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
337 |
#endif |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
338 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
339 |
#endif /* _ORCHESTRATOR_PRIVATE_H */ |