Lines Matching defs:a_gdt

171 	int		(*c_func)(int argc, char **argv, GLOBALDATA_T *a_gdt);
178 GLOBALDATA_T *a_gdt);
180 GLOBALDATA_T *a_gdt);
182 GLOBALDATA_T *a_gdt);
184 GLOBALDATA_T *a_gdt);
186 GLOBALDATA_T *a_gdt);
188 GLOBALDATA_T *a_gdt);
190 GLOBALDATA_T *a_gdt);
192 GLOBALDATA_T *a_gdt);
194 GLOBALDATA_T *a_gdt);
196 GLOBALDATA_T *a_gdt);
198 GLOBALDATA_T *a_gdt);
200 GLOBALDATA_T *a_gdt);
202 GLOBALDATA_T *a_gdt);
209 static int calculateFileSystemConfig(GLOBALDATA_T *a_gdt);
213 static int parseGlobalData(char *a_envVar, GLOBALDATA_T **a_gdt);
221 static void dumpGlobalData(GLOBALDATA_T *a_gdt);
507 cmd_is_diskless_client(int argc, char **argv, GLOBALDATA_T *a_gdt)
540 r = cmd_is_nonglobal_zone(argc, argv, a_gdt);
545 r = cmd_is_mounted_miniroot(argc, argv, a_gdt);
551 r = cmd_is_netinstall_image(argc, argv, a_gdt);
557 r = cmd_is_boot_environment(argc, argv, a_gdt);
627 if (strcmp(a_gdt->gd_zoneName, GLOBAL_ZONENAME) != 0) {
686 if ((a_gdt->gd_initialInstall == B_TRUE) &&
687 (strcmp(a_gdt->gd_installRoot, rootPath) == 0)) {
695 if ((a_gdt->gd_globalZoneInstall == B_TRUE) ||
696 (a_gdt->gd_nonglobalZoneInstall == B_TRUE)) {
734 cmd_is_global_zone(int argc, char **argv, GLOBALDATA_T *a_gdt)
765 r = cmd_is_nonglobal_zone(argc, argv, a_gdt);
770 r = cmd_is_mounted_miniroot(argc, argv, a_gdt);
776 r = cmd_is_netinstall_image(argc, argv, a_gdt);
782 r = cmd_is_diskless_client(argc, argv, a_gdt);
837 if ((a_gdt->gd_initialInstall == B_TRUE) &&
838 (strcmp(a_gdt->gd_installRoot, rootPath) == 0)) {
846 if (a_gdt->gd_nonglobalZoneInstall == B_TRUE) {
854 if ((a_gdt->gd_globalZoneInstall == B_TRUE) &&
855 (strcmp(a_gdt->gd_installRoot, rootPath) == 0)) {
867 if (strcmp(a_gdt->gd_zoneName, GLOBAL_ZONENAME) == 0) {
879 rootPath, a_gdt->gd_zoneName);
952 cmd_is_netinstall_image(int argc, char **argv, GLOBALDATA_T *a_gdt)
979 r = cmd_is_global_zone(argc, argv, a_gdt);
1031 if (strcmp(a_gdt->gd_zoneName, GLOBAL_ZONENAME) != 0) {
1039 if (cmd_is_mounted_miniroot(argc, argv, a_gdt) == R_SUCCESS) {
1087 if ((a_gdt->gd_initialInstall == B_TRUE) &&
1088 (strcmp(a_gdt->gd_installRoot, rootPath) == 0)) {
1096 if ((a_gdt->gd_globalZoneInstall == B_TRUE) ||
1097 (a_gdt->gd_nonglobalZoneInstall == B_TRUE)) {
1128 cmd_is_mounted_miniroot(int argc, char **argv, GLOBALDATA_T *a_gdt)
1189 if (strcmp(a_gdt->gd_zoneName, GLOBAL_ZONENAME) != 0) {
1217 if ((a_gdt->gd_initialInstall == B_TRUE) &&
1218 (strcmp(a_gdt->gd_installRoot, rootPath) == 0)) {
1226 if ((a_gdt->gd_globalZoneInstall == B_TRUE) ||
1227 (a_gdt->gd_nonglobalZoneInstall == B_TRUE)) {
1255 cmd_is_nonglobal_zone(int argc, char **argv, GLOBALDATA_T *a_gdt)
1316 if ((a_gdt->gd_nonglobalZoneInstall == B_TRUE) &&
1317 (strcmp(a_gdt->gd_installRoot, rootPath) == 0)) {
1319 rootPath, a_gdt->gd_zoneName);
1325 if ((a_gdt->gd_initialInstall == B_TRUE) &&
1326 (strcmp(a_gdt->gd_installRoot, rootPath) == 0)) {
1334 if ((a_gdt->gd_globalZoneInstall == B_TRUE) ||
1335 (a_gdt->gd_nonglobalZoneInstall == B_TRUE)) {
1352 if (strcmp(a_gdt->gd_zoneName, GLOBAL_ZONENAME) == 0) {
1355 rootPath, a_gdt->gd_zoneName);
1360 rootPath, a_gdt->gd_zoneName);
1439 if (strcmp(a_gdt->gd_zoneName, GLOBAL_ZONENAME) == 0) {
1463 if ((a_gdt->gd_parentZoneName != NULL) &&
1464 (a_gdt->gd_currentZoneName != NULL) &&
1465 (strcmp(a_gdt->gd_parentZoneName,
1466 a_gdt->gd_currentZoneName) == 0)) {
1469 rootPath, a_gdt->gd_parentZoneName);
1478 if (a_gdt->inMountedState) {
1493 if ((a_gdt->gd_parentZoneType != NULL) &&
1494 (strcmp(a_gdt->gd_parentZoneType, "nonglobal") == 0)) {
1502 if ((a_gdt->gd_currentZoneType != NULL) &&
1503 (strcmp(a_gdt->gd_currentZoneType, GLOBAL_ZONENAME) == 0)) {
1538 cmd_is_running_system(int argc, char **argv, GLOBALDATA_T *a_gdt)
1565 r = cmd_is_diskless_client(argc, argv, a_gdt);
1624 if (strcmp(a_gdt->gd_zoneName, GLOBAL_ZONENAME) != 0) {
1632 if ((a_gdt->gd_initialInstall == B_TRUE) &&
1633 (strcmp(a_gdt->gd_installRoot, rootPath) == 0)) {
1641 if ((a_gdt->gd_globalZoneInstall == B_TRUE) ||
1642 (a_gdt->gd_nonglobalZoneInstall == B_TRUE)) {
1671 cmd_can_add_driver(int argc, char **argv, GLOBALDATA_T *a_gdt)
1698 r = cmd_is_running_system(argc, argv, a_gdt);
1703 r = cmd_is_diskless_client(argc, argv, a_gdt);
1810 cmd_can_update_driver(int argc, char **argv, GLOBALDATA_T *a_gdt)
1837 r = cmd_is_running_system(argc, argv, a_gdt);
1842 r = cmd_is_diskless_client(argc, argv, a_gdt);
1949 cmd_can_remove_driver(int argc, char **argv, GLOBALDATA_T *a_gdt)
1976 r = cmd_is_running_system(argc, argv, a_gdt);
1981 r = cmd_is_diskless_client(argc, argv, a_gdt);
2087 cmd_is_path_writable(int argc, char **argv, GLOBALDATA_T *a_gdt)
2157 list = a_gdt->gd_fileSystemConfig;
2158 listSize = a_gdt->gd_fileSystemConfigLen;
2220 cmd_is_alternative_root(int argc, char **argv, GLOBALDATA_T *a_gdt)
2251 r = cmd_is_boot_environment(argc, argv, a_gdt);
2256 r = cmd_is_diskless_client(argc, argv, a_gdt);
2262 r = cmd_is_mounted_miniroot(argc, argv, a_gdt);
2268 r = cmd_is_netinstall_image(argc, argv, a_gdt);
2274 r = cmd_is_nonglobal_zone(argc, argv, a_gdt);
2280 r = cmd_is_running_system(argc, argv, a_gdt);
2335 if ((a_gdt->gd_initialInstall == B_TRUE) &&
2336 (strcmp(a_gdt->gd_installRoot, rootPath) == 0)) {
2360 if ((a_gdt->gd_globalZoneInstall == B_TRUE) ||
2361 (a_gdt->gd_nonglobalZoneInstall == B_TRUE)) {
2395 cmd_is_boot_environment(int argc, char **argv, GLOBALDATA_T *a_gdt)
2425 r = cmd_is_diskless_client(argc, argv, a_gdt);
2430 r = cmd_is_netinstall_image(argc, argv, a_gdt);
2436 r = cmd_is_mounted_miniroot(argc, argv, a_gdt);
2498 if (strcmp(a_gdt->gd_zoneName, GLOBAL_ZONENAME) != 0) {
2524 if ((a_gdt->gd_initialInstall == B_TRUE) &&
2525 (strcmp(a_gdt->gd_installRoot, rootPath) == 0)) {
2532 if ((a_gdt->gd_globalZoneInstall == B_TRUE) ||
2533 (a_gdt->gd_nonglobalZoneInstall == B_TRUE)) {
2558 cmd_is_what(int argc, char **argv, GLOBALDATA_T *a_gdt)
2632 result = cmds[cur_cmd].c_func(argc, argv, a_gdt);
2896 * Arguments: a_gdt - global data structure to place sorted entries into
2904 calculateFileSystemConfig(GLOBALDATA_T *a_gdt)
2913 assert(a_gdt != (GLOBALDATA_T *)NULL);
2952 a_gdt->inMountedState = B_TRUE;
2963 a_gdt->gd_fileSystemConfig = list;
2964 a_gdt->gd_fileSystemConfigLen = listSize;
3951 * Arguments: a_gdt - pointer to global data structure to dump
3957 dumpGlobalData(GLOBALDATA_T *a_gdt)
3961 assert(a_gdt != (GLOBALDATA_T *)NULL);
3967 a_gdt->gd_parentZoneName ? a_gdt->gd_parentZoneName : "",
3968 a_gdt->gd_parentZoneType ? a_gdt->gd_parentZoneType : "");
3970 a_gdt->gd_currentZoneName ? a_gdt->gd_currentZoneName : "",
3971 a_gdt->gd_currentZoneType ? a_gdt->gd_currentZoneType : "");