Project

General

Profile

Actions

Bug #7668

closed

zfs get only outputs 3 columns if "clones" property is empty

Added by Rich Lowe about 5 years ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2016-12-15
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

; zfs get -p clones stash2/foo@safe
NAME               PROPERTY  VALUE   SOURCE
stash2/foo@safe  clones            -

The lack of anything in the VALUE column makes this annoyingly unparseable (if the dataset is not a snapshot, VALUE does have the customary - value)

Actions #1

Updated by Yuri Pankov almost 5 years ago

  • Status changed from New to In Progress
  • Assignee set to Yuri Pankov
  • % Done changed from 0 to 50
  • Difficulty changed from Medium to Bite-size
  • Tags deleted (needs-triage)
Actions #2

Updated by Yuri Pankov over 4 years ago

  • Status changed from In Progress to Feedback
  • Assignee deleted (Yuri Pankov)
  • % Done changed from 50 to 0
Actions #3

Updated by Electric Monk 10 months ago

  • Gerrit CR set to 1373
Actions #4

Updated by Andy Fiddaman 10 months ago

  • Status changed from Feedback to In Progress
Actions #5

Updated by Matt Fiddaman 9 months ago

I tested this by running the full ZFS test suite before and after the change to libzfs, and the results were identical. After updating the tests to include checking for this problem, the test fails before the change and succeeds after

This has also been accepted and integrated into openzfs, including the updates to the test.

Actions #6

Updated by Electric Monk 9 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

git commit 99ea293e719ac006d413e4fde6ac0d5cd4dd6c59

commit  99ea293e719ac006d413e4fde6ac0d5cd4dd6c59
Author: Matt Fiddaman <illumos@m.fiddaman.uk>
Date:   2021-04-08T20:54:42.000Z

    7668 zfs get only outputs 3 columns if "clones" property is empty
    Reviewed by: Robert Mustacchi <rm@fingolfin.org>
    Reviewed by: Gordon Ross <Gordon.W.Ross@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF