Print this page
OS-192 zone_create() warning on headnode

Split Close
Expand all
Collapse all
          --- old/usr/src/head/libzonecfg.h
          +++ new/usr/src/head/libzonecfg.h
↓ open down ↓ 316 lines elided ↑ open up ↑
 317  317  extern  int     zonecfg_set_autoboot(zone_dochandle_t, boolean_t);
 318  318  extern  int     zonecfg_get_iptype(zone_dochandle_t, zone_iptype_t *);
 319  319  extern  int     zonecfg_set_iptype(zone_dochandle_t, zone_iptype_t);
 320  320  extern  int     zonecfg_get_pool(zone_dochandle_t, char *, size_t);
 321  321  extern  int     zonecfg_set_pool(zone_dochandle_t, char *);
 322  322  extern  int     zonecfg_get_bootargs(zone_dochandle_t, char *, size_t);
 323  323  extern  int     zonecfg_set_bootargs(zone_dochandle_t, char *);
 324  324  extern  int     zonecfg_get_sched_class(zone_dochandle_t, char *, size_t);
 325  325  extern  int     zonecfg_set_sched(zone_dochandle_t, char *);
 326  326  extern  int     zonecfg_get_dflt_sched_class(zone_dochandle_t, char *, int);
      327 +extern  zoneid_t zonecfg_get_did(zone_dochandle_t);
      328 +extern  void    zonecfg_set_did(zone_dochandle_t);
 327  329  
 328  330  /*
 329  331   * Set/retrieve the brand for the zone
 330  332   */
 331  333  extern  int     zonecfg_get_brand(zone_dochandle_t, char *, size_t);
 332  334  extern  int     zonecfg_set_brand(zone_dochandle_t, char *);
 333  335  
 334  336  /*
 335  337   * Filesystem configuration.
 336  338   */
↓ open down ↓ 184 lines elided ↑ open up ↑
 521  523  extern  int     zonecfg_default_privset(priv_set_t *, const char *);
 522  524  extern  int     zonecfg_get_privset(zone_dochandle_t, priv_set_t *,
 523  525      char **);
 524  526  extern  int     zonecfg_get_limitpriv(zone_dochandle_t, char **);
 525  527  extern  int     zonecfg_set_limitpriv(zone_dochandle_t, char *);
 526  528  
 527  529  /*
 528  530   * Higher-level routines.
 529  531   */
 530  532  extern  int     zone_get_brand(char *, char *, size_t);
      533 +extern  zoneid_t zone_get_did(char *);
 531  534  extern  int     zone_get_rootpath(char *, char *, size_t);
 532  535  extern  int     zone_get_devroot(char *, char *, size_t);
 533  536  extern  int     zone_get_zonepath(char *, char *, size_t);
 534  537  extern  int     zone_get_state(char *, zone_state_t *);
 535  538  extern  int     zone_set_state(char *, zone_state_t);
 536  539  extern  char    *zone_state_str(zone_state_t);
 537  540  extern  int     zonecfg_get_name_by_uuid(const uuid_t, char *, size_t);
 538  541  extern  int     zonecfg_get_uuid(const char *, uuid_t);
 539  542  extern  int     zonecfg_default_brand(char *, size_t);
 540  543  
↓ open down ↓ 79 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX