freebsd-nq/lib/libzfs/common
Andriy Gapon aad99e99a3 7571 non-present readonly numeric ZFS props do not have default value
illumos/illumos-gate@ad2760acbd
ad2760acbd

https://www.illumos.org/issues/7571
  ZFS displays the default value for non-present readonly numeric (and index)
  properties. However, these properties default values are not meaningful.
  Instead, we should display a "-", indicating that they are not present. For
  example, on a version-12 pool, the usedby* properties are not available, but
  they show up as the incorrect value "0":
     1. zfs get all test12
        ...
        test12 usedbysnapshots 0 -
        test12 usedbydataset 0 -
        test12 usedbychildren 0 -
        test12 usedbyrefreservation 0 -
  We will be introducing more sometimes-present numeric readonly properties, so
  it would be nice to fix this.

Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Matthew Ahrens <mahrens@delphix.com>
2017-04-14 17:27:09 +00:00
..
sys 5312 libzfs should be decoupled from kernel's zfs_context.h 2014-12-06 00:17:25 +00:00
libzfs_changelist.c 6314 buffer overflow in dsl_dataset_name 2016-07-12 12:01:54 +00:00
libzfs_config.c 4521 zfstest is trying to execute evil "zfs unmount -a" 2016-07-12 11:58:04 +00:00
libzfs_dataset.c 7571 non-present readonly numeric ZFS props do not have default value 2017-04-14 17:27:09 +00:00
libzfs_diff.c 6314 buffer overflow in dsl_dataset_name 2016-07-12 12:01:54 +00:00
libzfs_fru.c 8046 Let calloc() do the multiplication in libzfs_fru_refresh 2017-04-10 22:46:34 +00:00
libzfs_impl.h 7542 zfs_unmount failed with EZFS_UNSHARENFSFAILED 2017-04-14 17:24:22 +00:00
libzfs_import.c 6872 zfs libraries should not allow uninitialized variables 2016-07-12 11:59:25 +00:00
libzfs_iter.c 6314 buffer overflow in dsl_dataset_name 2016-07-12 12:01:54 +00:00
libzfs_mount.c 7542 zfs_unmount failed with EZFS_UNSHARENFSFAILED 2017-04-14 17:24:22 +00:00
libzfs_pool.c 6314 buffer overflow in dsl_dataset_name 2016-07-12 12:01:54 +00:00
libzfs_sendrecv.c 6412 zfs receive: -u can be ignored sometimes 2016-11-22 11:46:22 +00:00
libzfs_status.c Update vendor/illumos/dist to illumos-gate 14056:812b3d1ca0a0 2013-06-25 21:34:21 +00:00
libzfs_util.c 6931 lib/libzfs: cleanup gcc warnings 2016-07-12 12:00:31 +00:00
libzfs.h 6314 buffer overflow in dsl_dataset_name 2016-07-12 12:01:54 +00:00