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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/zoneadm/zoneadm.h
          +++ new/usr/src/cmd/zoneadm/zoneadm.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  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 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
       25 + * Copyright 2014 Nexenta Systems, Inc. All rights reserved.
  25   26   */
  26   27  
  27   28  #ifndef _ZONEADM_H
  28   29  #define _ZONEADM_H
  29   30  
  30   31  #include <sys/types.h>
  31   32  
  32   33  #define CMD_HELP        0
  33   34  #define CMD_BOOT        1
  34   35  #define CMD_HALT        2
  35   36  #define CMD_READY       3
  36      -#define CMD_REBOOT      4
  37      -#define CMD_LIST        5
  38      -#define CMD_VERIFY      6
  39      -#define CMD_INSTALL     7
  40      -#define CMD_UNINSTALL   8
  41      -#define CMD_MOUNT       9
  42      -#define CMD_UNMOUNT     10
  43      -#define CMD_CLONE       11
  44      -#define CMD_MOVE        12
  45      -#define CMD_DETACH      13
  46      -#define CMD_ATTACH      14
  47      -#define CMD_MARK        15
  48      -#define CMD_APPLY       16
  49      -#define CMD_SYSBOOT     17
       37 +#define CMD_SHUTDOWN    4
       38 +#define CMD_REBOOT      5
       39 +#define CMD_LIST        6
       40 +#define CMD_VERIFY      7
       41 +#define CMD_INSTALL     8
       42 +#define CMD_UNINSTALL   9
       43 +#define CMD_MOUNT       10
       44 +#define CMD_UNMOUNT     11
       45 +#define CMD_CLONE       12
       46 +#define CMD_MOVE        13
       47 +#define CMD_DETACH      14
       48 +#define CMD_ATTACH      15
       49 +#define CMD_MARK        16
       50 +#define CMD_APPLY       17
       51 +#define CMD_SYSBOOT     18
  50   52  
  51   53  #define CMD_MIN         CMD_HELP
  52   54  #define CMD_MAX         CMD_SYSBOOT
  53   55  
  54   56  #if !defined(TEXT_DOMAIN)               /* should be defined by cc -D */
  55   57  #define TEXT_DOMAIN     "SYS_TEST"      /* Use this only if it wasn't */
  56   58  #endif
  57   59  
  58   60  #define Z_ERR           1
  59   61  #define Z_USAGE         2
↓ open down ↓ 77 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX