Project

General

Profile

Bug #7571

non-present readonly numeric ZFS props do not have default value

Added by Daniel Kimmel about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2016-11-11
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

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.


Related issues

Related to illumos gate - Bug #7604: if volblocksize property is the default, it displays as "-" rather than 8KClosed2016-11-21

Actions

History

#1

Updated by Electric Monk about 3 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit ad2760acbd9c3b479bf632f05c6f03d89830799d

commit  ad2760acbd9c3b479bf632f05c6f03d89830799d
Author: Matthew Ahrens <mahrens@delphix.com>
Date:   2016-11-18T19:22:02.000Z

    7571 non-present readonly numeric ZFS props do not have default value
    Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
    Reviewed by: George Wilson <george.wilson@delphix.com>
    Approved by: Robert Mustacchi <rm@joyent.com>

#2

Updated by Robert Mustacchi about 3 years ago

  • Related to Bug #7604: if volblocksize property is the default, it displays as "-" rather than 8K added

Also available in: Atom PDF