Project

General

Profile

Actions

Feature #13678

closed

Make zpool list -vp print individual vdev sizes parsable.

Added by Matt Fiddaman over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

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

Description

From openzfs

https://github.com/openzfs/zfs/commit/bc2d809387debb95d82f47185d446f328da4d147

Add argument format to print_one_column(), and use it to call
zfs_nicenum_format with, instead of just zfs_nicenum. Don't print "%" 
for fragmentation or capacity percent values.

The calls to print_one_colum is made with ZFS_NICENUM_RAW if
cb->cb_literal (zpool list called with -p), and ZFS_NICENUM_1024 if not.

Also zpool_get_prop is modified to don't add "%" or "x" if literal.

Related issues

Related to illumos gate - Bug #8883: zpool list parsable output is inconsistentClosed2017-12-02

Actions
Actions

Also available in: Atom PDF