Re: zfs list output RELENG_13 vs RELENG_14

From: Miroslav Lachman <000.fbsd_at_quip.cz>
Date: Fri, 20 Oct 2023 15:12:16 UTC
On 20/10/2023 14:08, mike tancsa wrote:
> Hi all,
> 
>      Just wondering if this change in output was on purpose or 
> accidental. It breaks telegraf parsing for one thing, perhaps other 
> scripts as well. In RELENG_13 we have

It is wrong or the man page is outdated. zfs-list(8) still shows

-H  Used for scripting mode.  Do not print headers and separate	fields
     by a single tab instead of arbitrary white space.

-p  Display numbers in parsable (exact) values.

> zfs list -Hp -o name,avail,used,usedsnap,usedds
> 
>   zfs list -Hp -o name,avail,used,usedsnap,usedds
> cageroot        723864289280    216733548544    0       98304
> cageroot/ROOT   723864289280    17766383616     0       98304
> cageroot/ROOT/default   723864289280    17766285312     0 17766285312
> cageroot/tmp    723864289280    21332996096     0 21332996096
> cageroot/usr    723864289280    124012130304    0       98304
> 
> ...
> 
> vs
> 
> releng_14
> 
> # zfs list -Hp -o name,avail,used,usedsnap,usedds
> zroot   10016657408     15467933696     -       -
> zroot/ROOT      10016657408     4927225856      -       -
> zroot/ROOT/default      10016657408     4926791680      -       -
> zroot/home      10016657408     778240  -       -
> zroot/tmp       10016657408     589824  -       -
> zroot/usr       10016657408     10526662656     -       -
> zroot/usr/obj   10016657408     430080  -       -
> zroot/usr/ports 10016657408     10525368320     -       -
> 
> with the dashes for zero values.

Kind regards
Miroslav Lachman