Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Oct 2023 15:12:16 +0000
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        mike tancsa <mike@sentex.net>, FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: zfs list output RELENG_13 vs RELENG_14
Message-ID:  <1d2f504c-7724-48ef-a02e-a35e8c9ef17b@quip.cz>
In-Reply-To: <5526f281-fa32-4bd6-a9d5-c14a3d28c93f@sentex.net>
References:  <5526f281-fa32-4bd6-a9d5-c14a3d28c93f@sentex.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1d2f504c-7724-48ef-a02e-a35e8c9ef17b>