Print this page
zpool import is braindead

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libzfs/common/libzfs_util.c
          +++ new/usr/src/lib/libzfs/common/libzfs_util.c
↓ 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) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright (c) 2013, Joyent, Inc. All rights reserved.
  25   25   * Copyright (c) 2012 by Delphix. All rights reserved.
       26 + * Copyright 2014 RackTop Systems.
  26   27   */
  27   28  
  28   29  /*
  29   30   * Internal utility routines for the ZFS library.
  30   31   */
  31   32  
  32   33  #include <errno.h>
  33   34  #include <fcntl.h>
  34   35  #include <libintl.h>
  35   36  #include <stdarg.h>
↓ open down ↓ 919 lines elided ↑ open up ↑
 955  956  /*
 956  957   * Display a single line of output, according to the settings in the callback
 957  958   * structure.
 958  959   */
 959  960  void
 960  961  zprop_print_one_property(const char *name, zprop_get_cbdata_t *cbp,
 961  962      const char *propname, const char *value, zprop_source_t sourcetype,
 962  963      const char *source, const char *recvd_value)
 963  964  {
 964  965          int i;
 965      -        const char *str;
      966 +        const char *str = NULL;
 966  967          char buf[128];
 967  968  
 968  969          /*
 969  970           * Ignore those source types that the user has chosen to ignore.
 970  971           */
 971  972          if ((sourcetype & cbp->cb_sources) == 0)
 972  973                  return;
 973  974  
 974  975          if (cbp->cb_first)
 975  976                  zprop_print_headers(cbp, cbp->cb_type);
↓ open down ↓ 526 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX