Project

General

Profile

Bug #8972

zfs holds: In scripted mode, do not pad columns with spaces

Added by Prakash Surya over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
2018-01-18
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

'zfs holds -H' does not properly output content in scripted mode. It uses a tab instead of two spaces, but it still pads column widths with spaces when it should not.

Before:

 $ /sbin/zfs holds -Hp zstore/svn/base@r325191
zstore/svn/base@r325191 testing                         1509498917
zstore/svn/base@r325191 testing_long_tag_name_here      1509499027

After:
 $ ./zfs holds -Hp zstore/svn/base@r325191
zstore/svn/base@r325191 testing 1509498917
zstore/svn/base@r325191 testing_long_tag_name_here      1509499027

History

#1

Updated by Electric Monk over 1 year ago

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

git commit e9b7d6e7f7a6477679a35b73eb3934b096b3dd39

commit  e9b7d6e7f7a6477679a35b73eb3934b096b3dd39
Author: Allan Jude <allanjude@freebsd.org>
Date:   2018-01-18T22:00:51.000Z

    8972 zfs holds: In scripted mode, do not pad columns with spaces
    Reviewed by: Matthew Ahrens <mahrens@delphix.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF