Print this page
patch zone-auto-create-be

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libinstzones/hdrs/instzones_api.h
          +++ new/usr/src/lib/libinstzones/hdrs/instzones_api.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
       24 + * Copyright 2015 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
  24   25   */
  25   26  
  26   27  #ifndef _INSTZONES_API_H
  27   28  #define _INSTZONES_API_H
  28   29  
  29   30  
  30   31  /*
  31   32   * Module:      instzones_api.h
  32   33   * Group:       libinstzones
  33   34   * Description: This module contains the libinstzones API data structures,
↓ open down ↓ 50 lines elided ↑ open up ↑
  84   85  #define ZLOCKS_NONE             ((ZLOCKS_T)0x00000000)  /* no locks */
  85   86  
  86   87  /*
  87   88   * external function definitions
  88   89   */
  89   90  
  90   91  /* zones.c */
  91   92  
  92   93  extern boolean_t        z_zones_are_implemented(void);
  93   94  extern void             z_set_zone_root(const char *zroot);
       95 +extern int              z_zlist_is_zone_auto_create_be(zoneList_t, int,
       96 +                                boolean_t *);
  94   97  extern boolean_t        z_zlist_is_zone_runnable(zoneList_t a_zoneList,
  95   98                                  int a_zoneIndex);
  96   99  extern boolean_t        z_zlist_restore_zone_state(zoneList_t a_zoneList,
  97  100                                  int a_zoneIndex);
  98  101  extern boolean_t        z_zlist_change_zone_state(zoneList_t a_zoneList,
  99  102                                  int a_zoneIndex, zone_state_t a_newState);
 100  103  extern char             *z_get_zonename(void);
 101  104  extern zone_state_t     z_zlist_get_current_state(zoneList_t a_zoneList,
 102  105                                  int a_zoneIndex);
 103  106  extern zone_state_t     z_zlist_get_original_state(zoneList_t a_zoneList,
↓ open down ↓ 1 lines elided ↑ open up ↑
 105  108  extern int              z_zoneExecCmdArray(int *r_status, char **r_results,
 106  109                                  char *a_inputFile, char *a_path, char *a_argv[],
 107  110                                  const char *a_zoneName, int *a_fds);
 108  111  extern int              z_zone_exec(const char *zonename, const char *path,
 109  112                                  char *argv[], char *a_stdoutPath,
 110  113                                  char *a_stderrPath, int *a_fds);
 111  114  extern boolean_t        z_create_zone_admin_file(char *a_zoneAdminFilename,
 112  115                                  char *a_userAdminFilename);
 113  116  extern void             z_free_zone_list(zoneList_t a_zoneList);
 114  117  extern zoneList_t       z_get_nonglobal_zone_list(void);
      118 +extern zoneList_t       z_get_nonglobal_branded_zone_list(void);
 115  119  extern zoneList_t       z_get_nonglobal_zone_list_by_brand(zoneBrandList_t *);
 116  120  extern void             z_free_brand_list(zoneBrandList_t *a_brandList);
 117  121  extern zoneBrandList_t  *z_make_brand_list(const char *brandList,
 118  122                                  const char *delim);
 119  123  extern boolean_t        z_lock_zones(zoneList_t a_zlst, ZLOCKS_T a_lflags);
 120  124  extern boolean_t        z_non_global_zones_exist(void);
 121  125  extern boolean_t        z_running_in_global_zone(void);
 122  126  extern void             z_set_output_functions(_z_printf_fcn_t a_echo_fcn,
 123  127                                  _z_printf_fcn_t a_echo_debug_fcn,
 124  128                                  _z_printf_fcn_t a_progerr_fcn);
↓ open down ↓ 53 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX