Print this page
2594 implement graceful shutdown for local zones in zoneadm

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/zone.h
          +++ new/usr/src/uts/common/sys/zone.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  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   * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2014 Nexenta Systems, Inc. All rights reserved.
  23   24   */
  24   25  
  25   26  #ifndef _SYS_ZONE_H
  26   27  #define _SYS_ZONE_H
  27   28  
  28   29  #include <sys/types.h>
  29   30  #include <sys/mutex.h>
  30   31  #include <sys/param.h>
  31   32  #include <sys/rctl.h>
  32   33  #include <sys/ipc_rctl.h>
↓ open down ↓ 191 lines elided ↑ open up ↑
 224  225  } zone_status_t;
 225  226  #define ZONE_MIN_STATE          ZONE_IS_UNINITIALIZED
 226  227  #define ZONE_MAX_STATE          ZONE_IS_DEAD
 227  228  
 228  229  /*
 229  230   * Valid commands which may be issued by zoneadm to zoneadmd.  The kernel also
 230  231   * communicates with zoneadmd, but only uses Z_REBOOT and Z_HALT.
 231  232   */
 232  233  typedef enum zone_cmd {
 233  234          Z_READY, Z_BOOT, Z_FORCEBOOT, Z_REBOOT, Z_HALT, Z_NOTE_UNINSTALLING,
 234      -        Z_MOUNT, Z_FORCEMOUNT, Z_UNMOUNT
      235 +        Z_MOUNT, Z_FORCEMOUNT, Z_UNMOUNT, Z_SHUTDOWN
 235  236  } zone_cmd_t;
 236  237  
 237  238  /*
 238  239   * The structure of a request to zoneadmd.
 239  240   */
 240  241  typedef struct zone_cmd_arg {
 241  242          uint64_t        uniqid;         /* unique "generation number" */
 242  243          zone_cmd_t      cmd;            /* requested action */
 243  244          uint32_t        _pad;           /* need consistent 32/64 bit alignmt */
 244  245          char locale[MAXPATHLEN];        /* locale in which to render messages */
↓ open down ↓ 526 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX