Make zpool list -vp print individual vdev sizes parsable.
cmd - userland programs
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.
Updated by Electric Monk 7 months ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit 3dfe801733ea71102fa4b1f79dddf16ee3ea546f Author: Christer Ekholm <email@example.com> Date: 2021-05-13T04:23:20.000Z 13678 Make zpool list -vp print individual vdev sizes parsable. 8883 zpool list parsable output is inconsistent Reviewed by: Toomas Soome <firstname.lastname@example.org> Reviewed by: Andy Fiddaman <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>