Print this page
5882 Temporary pool names
Reviewed by: Matt Ahrens <matt@delphix.com>
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Reviewed by: John Kennedy <john.kennedy@delphix.com>
Approved by: Dan McDonald <danmcd@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/fs/zfs.h
          +++ new/usr/src/uts/common/sys/fs/zfs.h
↓ open down ↓ 202 lines elided ↑ open up ↑
 203  203          ZPOOL_PROP_ALLOCATED,
 204  204          ZPOOL_PROP_READONLY,
 205  205          ZPOOL_PROP_COMMENT,
 206  206          ZPOOL_PROP_EXPANDSZ,
 207  207          ZPOOL_PROP_FREEING,
 208  208          ZPOOL_PROP_FRAGMENTATION,
 209  209          ZPOOL_PROP_LEAKED,
 210  210          ZPOOL_PROP_MAXBLOCKSIZE,
 211  211          ZPOOL_PROP_BOOTSIZE,
 212  212          ZPOOL_PROP_CHECKPOINT,
      213 +        ZPOOL_PROP_TNAME,
 213  214          ZPOOL_NUM_PROPS
 214  215  } zpool_prop_t;
 215  216  
 216  217  /* Small enough to not hog a whole line of printout in zpool(1M). */
 217  218  #define ZPROP_MAX_COMMENT       32
 218  219  
 219  220  #define ZPROP_VALUE             "value"
 220  221  #define ZPROP_SOURCE            "source"
 221  222  
 222  223  typedef enum {
↓ open down ↓ 625 lines elided ↑ open up ↑
 848  849          uint64_t        vs_initialize_state;    /* vdev_initialzing_state_t */
 849  850          uint64_t        vs_initialize_action_time; /* time_t */
 850  851          uint64_t        vs_checkpoint_space;    /* checkpoint-consumed space */
 851  852  } vdev_stat_t;
 852  853  
 853  854  /*
 854  855   * DDT statistics.  Note: all fields should be 64-bit because this
 855  856   * is passed between kernel and userland as an nvlist uint64 array.
 856  857   */
 857  858  typedef struct ddt_object {
 858      -        uint64_t        ddo_count;      /* number of elments in ddt     */
      859 +        uint64_t        ddo_count;      /* number of elments in ddt     */
 859  860          uint64_t        ddo_dspace;     /* size of ddt on disk          */
 860  861          uint64_t        ddo_mspace;     /* size of ddt in-core          */
 861  862  } ddt_object_t;
 862  863  
 863  864  typedef struct ddt_stat {
 864  865          uint64_t        dds_blocks;     /* blocks                       */
 865  866          uint64_t        dds_lsize;      /* logical size                 */
 866  867          uint64_t        dds_psize;      /* physical size                */
 867  868          uint64_t        dds_dsize;      /* deflated allocated size      */
 868  869          uint64_t        dds_ref_blocks; /* referenced blocks            */
↓ open down ↓ 185 lines elided ↑ open up ↑
1054 1055  
1055 1056  /*
1056 1057   * Flags for ZFS_IOC_POOL_IMPORT
1057 1058   */
1058 1059  #define ZFS_IMPORT_NORMAL       0x0
1059 1060  #define ZFS_IMPORT_VERBATIM     0x1
1060 1061  #define ZFS_IMPORT_ANY_HOST     0x2
1061 1062  #define ZFS_IMPORT_MISSING_LOG  0x4
1062 1063  #define ZFS_IMPORT_ONLY         0x8
1063 1064  #define ZFS_IMPORT_CHECKPOINT   0x10
     1065 +#define ZFS_IMPORT_TEMP_NAME    0x20
1064 1066  
1065 1067  /*
1066 1068   * Channel program argument/return nvlist keys and defaults.
1067 1069   */
1068 1070  #define ZCP_ARG_PROGRAM         "program"
1069 1071  #define ZCP_ARG_ARGLIST         "arg"
1070 1072  #define ZCP_ARG_SYNC            "sync"
1071 1073  #define ZCP_ARG_INSTRLIMIT      "instrlimit"
1072 1074  #define ZCP_ARG_MEMLIMIT        "memlimit"
1073 1075  
↓ open down ↓ 75 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX