Lines Matching refs:a_zlem
95 * Arguments: a_zlem - [RO, *RW] - (zoneListElement_t)
104 _z_make_zone_running(zoneListElement_t *a_zlem)
115 assert(a_zlem != NULL);
119 switch (a_zlem->_zlCurrKernelStatus) {
135 _z_echoDebug(DBG_TO_ZONEHALT, a_zlem->_zlName);
140 (void) _z_add_arg(args, a_zlem->_zlName);
159 ZONEADM_CMD, a_zlem->_zlName);
162 ZONEADM_CMD, a_zlem->_zlName, status,
172 a_zlem->_zlCurrKernelStatus = ZONE_STATE_INSTALLED;
179 if (a_zlem->_zlStatus & ZST_NOT_BOOTABLE) {
183 _z_echoDebug(DBG_TO_ZONERUNNING, a_zlem->_zlName);
196 (void) _z_add_arg(args, "%s", a_zlem->_zlName);
216 ZONEADM_CMD, a_zlem->_zlName);
219 ZONEADM_CMD, a_zlem->_zlName, status,
227 a_zlem->_zlStatus |= ZST_NOT_BOOTABLE;
235 zonecfg_find_scratch(fp, a_zlem->_zlName,
239 a_zlem->_zlName);
245 free(a_zlem->_zlScratchName);
246 a_zlem->_zlScratchName = _z_strdup(zonename);
248 a_zlem->_zlCurrKernelStatus = ZONE_STATE_MOUNTED;
265 * Arguments: a_zlem - [RO, *RW] - (zoneListElement_t)
274 _z_make_zone_ready(zoneListElement_t *a_zlem)
285 assert(a_zlem != (zoneListElement_t *)NULL);
289 switch (a_zlem->_zlCurrKernelStatus) {
296 _z_echoDebug(DBG_TO_ZONEUNMOUNT, a_zlem->_zlName);
301 (void) _z_add_arg(args, "%s", a_zlem->_zlName);
315 ZONEADM_CMD, a_zlem->_zlName);
318 ZONEADM_CMD, a_zlem->_zlName, status,
332 a_zlem->_zlCurrKernelStatus = ZONE_STATE_INSTALLED;
333 _z_echoDebug(DBG_TO_ZONEREADY, a_zlem->_zlName);
338 (void) _z_add_arg(args, "%s", a_zlem->_zlName);
352 a_zlem->_zlName, strerror(errno),
365 a_zlem->_zlCurrKernelStatus = ZONE_STATE_READY;
370 _z_echoDebug(DBG_TO_ZONEREADY, a_zlem->_zlName);
375 (void) _z_add_arg(args, "%s", a_zlem->_zlName);
394 a_zlem->_zlName, strerror(errno),
408 if (zone_get_state(a_zlem->_zlName, &st) != Z_OK) {
423 a_zlem->_zlName);
424 a_zlem->_zlCurrKernelStatus = st;
430 a_zlem->_zlCurrKernelStatus = ZONE_STATE_READY;
447 * Arguments: a_zlem - [RO, *RW] - (zoneListElement_t)
456 _z_make_zone_down(zoneListElement_t *a_zlem)
465 assert(a_zlem != NULL);
469 switch (a_zlem->_zlCurrKernelStatus) {
478 _z_echoDebug(DBG_TO_ZONEHALT, a_zlem->_zlName);
492 (void) _z_add_arg(args, "%s", a_zlem->_zlName);
511 ZONEADM_CMD, a_zlem->_zlName);
514 ZONEADM_CMD, a_zlem->_zlName, status,
524 a_zlem->_zlCurrKernelStatus = ZONE_STATE_INSTALLED;