Bug 223900 - zpool doesn't output parsable values when told to
Summary: zpool doesn't output parsable values when told to
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.1-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2017-11-27 04:13 UTC by Andrey Cherkashin
Modified: 2021-10-05 17:36 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Cherkashin 2017-11-27 04:13:48 UTC
Looks like `-p` flag only partially respected. Seems like it's not an issue for ZFS on Linux. 

What I did:

zpool list -H -p -odedupratio,fragmentation z

What I expected: 

1.00 37

What I got instead:

1.00x 37%
Comment 1 Piotr Pawel Stefaniak freebsd_committer 2021-10-05 17:36:59 UTC
It should work now.

$ zpool list -H -p -odedupratio,fragmentation z
1.00    36
$ zpool list -H -odedupratio,fragmentation z
1.00x   36%