Print this page
9709 Remove support for BZIP2 from dump
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/dumphdr.h
          +++ new/usr/src/uts/common/sys/dumphdr.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) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2018 Nexenta Systems, Inc. All rights reserved.
  23   24   * Copyright (c) 2016 by Delphix. All rights reserved.
  24   25   */
  25   26  
  26   27  #ifndef _SYS_DUMPHDR_H
  27   28  #define _SYS_DUMPHDR_H
  28   29  
  29   30  #include <sys/types.h>
  30   31  #include <sys/param.h>
  31   32  #include <sys/utsname.h>
  32   33  #include <sys/log.h>
↓ open down ↓ 124 lines elided ↑ open up ↑
 157  158          uint32_t dump_maxcsize;         /* compressed data max block size */
 158  159          uint32_t dump_maxrange;         /* max number of pages per range */
 159  160          uint16_t dump_nstreams;         /* number of compression streams */
 160  161          uint16_t dump_clevel;           /* compression level (0-9) */
 161  162          uint32_t dump_metrics;          /* size of metrics data */
 162  163  } dumpdatahdr_t;
 163  164  
 164  165  #define DUMP_DATAHDR_MAGIC      ('d' << 24 | 'h' << 16 | 'd' << 8 | 'r')
 165  166  
 166  167  #define DUMP_DATAHDR_VERSION    1
      168 +#define DUMP_CLEVEL_SERIAL      0       /* single-threaded lzjb compression */
 167  169  #define DUMP_CLEVEL_LZJB        1       /* parallel lzjb compression */
 168      -#define DUMP_CLEVEL_BZIP2       2       /* parallel bzip2 level 1 */
 169  170  
 170  171  #ifdef _KERNEL
 171  172  
 172  173  extern kmutex_t dump_lock;
 173  174  extern struct vnode *dumpvp;
 174  175  extern u_offset_t dumpvp_size;
 175  176  extern struct dumphdr *dumphdr;
 176  177  extern int dump_conflags;
 177  178  extern char *dumppath;
 178  179  
↓ open down ↓ 13 lines elided ↑ open up ↑
 192  193  extern void dump_ereports(void);
 193  194  extern void dumpvp_write(const void *, size_t);
 194  195  extern int dumpvp_resize(void);
 195  196  extern int dump_plat_addr(void);
 196  197  extern void dump_plat_pfn(void);
 197  198  extern int dump_plat_data(void *);
 198  199  extern int dump_set_uuid(const char *);
 199  200  extern const char *dump_get_uuid(void);
 200  201  
 201  202  /*
 202      - * Define a CPU count threshold that determines when to employ
 203      - * bzip2. This value is defined per-platform.
 204      - */
 205      -extern uint_t dump_plat_mincpu_default;
 206      -
 207      -#define DUMP_PLAT_SUN4U_MINCPU          0
 208      -#define DUMP_PLAT_SUN4U_OPL_MINCPU      0
 209      -#define DUMP_PLAT_SUN4V_MINCPU          0
 210      -#define DUMP_PLAT_X86_64_MINCPU         0
 211      -#define DUMP_PLAT_X86_32_MINCPU         0
 212      -
 213      -/*
 214      - * Override the per-platform default by setting this variable with
 215      - * /etc/system.  The value 0 disables parallelism, and the old format
 216      - * dump is produced.
 217      - */
 218      -extern uint_t dump_plat_mincpu;
 219      -
 220      -/*
 221  203   * Pages may be stolen at dump time. Prevent the pages from ever being
 222  204   * allocated while dump is running.
 223  205   */
 224  206  #define IS_DUMP_PAGE(pp) (dump_check_used && dump_test_used((pp)->p_pagenum))
 225  207  
 226  208  extern int dump_test_used(pfn_t);
 227  209  extern int dump_check_used;
 228  210  
 229  211  #endif /* _KERNEL */
 230  212  
 231  213  #ifdef  __cplusplus
 232  214  }
 233  215  #endif
 234  216  
 235  217  #endif  /* _SYS_DUMPHDR_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX