Print this page
2619 asynchronous destruction of ZFS file systems
2747 SPA versioning with zfs feature flags
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <gwilson@delphix.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Reviewed by: Dan Kruchinin <dan.kruchinin@gmail.com>
Approved by: Dan McDonald <danmcd@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libnvpair/libnvpair.c
          +++ new/usr/src/lib/libnvpair/libnvpair.c
↓ 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) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright (c) 2012 by Delphix. All rights reserved.
  23   24   */
  24   25  
  25   26  #include <unistd.h>
  26   27  #include <strings.h>
  27   28  #include <libintl.h>
  28   29  #include <sys/types.h>
  29   30  #include <sys/inttypes.h>
  30   31  #include <stdarg.h>
  31   32  #include <note.h>
  32   33  #include "libnvpair.h"
↓ open down ↓ 763 lines elided ↑ open up ↑
 796  797          nvlist_t        *nvlist_value;
 797  798          nvlist_t        **nvlist_array_value;
 798  799          uint_t          i, count;
 799  800  
 800  801          if (list == NULL) {
 801  802                  return;
 802  803          }
 803  804  
 804  805          while ((elem = nvlist_next_nvpair(list, elem)) != NULL) {
 805  806                  switch (nvpair_type(elem)) {
      807 +                case DATA_TYPE_BOOLEAN:
      808 +                        (void) printf("%*s%s\n", indent, "", nvpair_name(elem));
      809 +                        break;
      810 +
 806  811                  case DATA_TYPE_BOOLEAN_VALUE:
 807  812                          (void) nvpair_value_boolean_value(elem, &bool_value);
 808  813                          (void) printf("%*s%s: %s\n", indent, "",
 809  814                              nvpair_name(elem), bool_value ? "true" : "false");
 810  815                          break;
 811  816  
 812  817                  case DATA_TYPE_BYTE:
 813  818                          NVP(elem, byte, uchar_t, int, "%u");
 814  819                          break;
 815  820  
↓ open down ↓ 454 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX