Print this page
*** NO COMMENTS ***

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libbe/common/libbe.h
          +++ new/usr/src/lib/libbe/common/libbe.h
↓ open down ↓ 15 lines elided ↑ open up ↑
  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) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   */
  25   25  
       26 +/*
       27 + * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
       28 + */
       29 +
  26   30  #ifndef _LIBBE_H
  27   31  #define _LIBBE_H
  28   32  
  29   33  #include <libnvpair.h>
  30   34  #include <uuid/uuid.h>
  31   35  #include <libzfs.h>
  32   36  
  33   37  #ifdef __cplusplus
  34   38  extern "C" {
  35   39  #endif
↓ open down ↓ 15 lines elided ↑ open up ↑
  51   55  
  52   56  #define BE_ATTR_MOUNTPOINT      "mountpoint"
  53   57  #define BE_ATTR_MOUNT_FLAGS     "mount_flags"
  54   58  #define BE_ATTR_UNMOUNT_FLAGS   "unmount_flags"
  55   59  #define BE_ATTR_DESTROY_FLAGS   "destroy_flags"
  56   60  #define BE_ATTR_ROOT_DS         "root_ds"
  57   61  #define BE_ATTR_UUID_STR        "uuid_str"
  58   62  
  59   63  #define BE_ATTR_ACTIVE          "active"
  60   64  #define BE_ATTR_ACTIVE_ON_BOOT  "active_boot"
       65 +#define BE_ATTR_GLOBAL_ACTIVE   "global_active"
  61   66  #define BE_ATTR_SPACE           "space_used"
  62   67  #define BE_ATTR_DATASET         "dataset"
  63   68  #define BE_ATTR_STATUS          "status"
  64   69  #define BE_ATTR_DATE            "date"
  65   70  #define BE_ATTR_MOUNTED         "mounted"
  66   71  
  67   72  /*
  68   73   * libbe error codes
  69   74   *
  70   75   * NOTE: there is a copy of this enum in beadm/messages.py. To keep these
↓ open down ↓ 88 lines elided ↑ open up ↑
 159  164          char    *be_snapshot_name;
 160  165          time_t  be_snapshot_creation;   /* Date/time stamp when created */
 161  166          char    *be_snapshot_type;      /* cleanup policy type */
 162  167          struct  be_snapshot_list *be_next_snapshot;
 163  168  } be_snapshot_list_t;
 164  169  
 165  170  typedef struct be_node_list {
 166  171          boolean_t be_mounted;           /* is BE currently mounted */
 167  172          boolean_t be_active_on_boot;    /* is this BE active on boot */
 168  173          boolean_t be_active;            /* is this BE active currently */
      174 +        boolean_t be_global_active;     /* is zone's BE associated with */
      175 +                                        /* an active global BE */
 169  176          uint64_t be_space_used;
 170  177          char *be_node_name;
 171  178          char *be_rpool;
 172  179          char *be_root_ds;
 173  180          char *be_mntpt;
 174  181          char *be_policy_type;           /* cleanup policy type */
 175  182          char *be_uuid_str;              /* string representation of uuid */
 176  183          time_t be_node_creation;        /* Date/time stamp when created */
 177  184          struct be_dataset_list *be_node_datasets;
 178  185          uint_t be_node_num_datasets;
↓ open down ↓ 56 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX