Print this page
1693 persistent 'comment' field for a zpool

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/spa_impl.h
          +++ new/usr/src/uts/common/fs/zfs/sys/spa_impl.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) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
  23   24   * Copyright (c) 2011 by Delphix. All rights reserved.
  24   25   * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  25   26   */
  26   27  
  27   28  #ifndef _SYS_SPA_IMPL_H
  28   29  #define _SYS_SPA_IMPL_H
  29   30  
  30   31  #include <sys/spa.h>
  31   32  #include <sys/vdev.h>
  32   33  #include <sys/metaslab.h>
↓ open down ↓ 72 lines elided ↑ open up ↑
 105  106          SPA_PROC_ACTIVE,        /* taskqs created, spa_proc set */
 106  107          SPA_PROC_DEACTIVATE,    /* spa_deactivate() requests process exit */
 107  108          SPA_PROC_GONE           /* spa_thread() is exiting, spa_proc = &p0 */
 108  109  } spa_proc_state_t;
 109  110  
 110  111  struct spa {
 111  112          /*
 112  113           * Fields protected by spa_namespace_lock.
 113  114           */
 114  115          char            spa_name[MAXNAMELEN];   /* pool name */
      116 +        char            *spa_comment;           /* comment */
 115  117          avl_node_t      spa_avl;                /* node in spa_namespace_avl */
 116  118          nvlist_t        *spa_config;            /* last synced config */
 117  119          nvlist_t        *spa_config_syncing;    /* currently syncing config */
 118  120          nvlist_t        *spa_config_splitting;  /* config for splitting */
 119  121          nvlist_t        *spa_load_info;         /* info and errors from load */
 120  122          uint64_t        spa_config_txg;         /* txg of last config change */
 121  123          int             spa_sync_pass;          /* iterate-to-convergence */
 122  124          pool_state_t    spa_state;              /* pool state */
 123  125          int             spa_inject_ref;         /* injection references */
 124  126          uint8_t         spa_sync_on;            /* sync threads are running */
↓ open down ↓ 115 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX