From nobody Mon Jan 23 20:00:53 2023 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P11FD0GYKz3bGrX for ; Mon, 23 Jan 2023 20:01:04 +0000 (UTC) (envelope-from SRS0=0OvF=5U=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4P11FC0zR7z4KQM for ; Mon, 23 Jan 2023 20:01:03 +0000 (UTC) (envelope-from SRS0=0OvF=5U=quip.cz=000.fbsd@elsa.codelab.cz) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of "SRS0=0OvF=5U=quip.cz=000.fbsd@elsa.codelab.cz" has no SPF policy when checking 94.124.105.4) smtp.mailfrom="SRS0=0OvF=5U=quip.cz=000.fbsd@elsa.codelab.cz"; dmarc=none Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 0629928482 for ; Mon, 23 Jan 2023 21:00:55 +0100 (CET) Received: from [192.168.145.50] (ip-89-177-27-225.bb.vodafone.cz [89.177.27.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 27ABB28416 for ; Mon, 23 Jan 2023 21:00:54 +0100 (CET) Message-ID: <056395aa-179b-bca6-de38-d804fba48ca7@quip.cz> Date: Mon, 23 Jan 2023 21:00:53 +0100 List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 To: "freebsd-fs@freebsd.org" Content-Language: cs-Cestina From: Miroslav Lachman <000.fbsd@quip.cz> Subject: zpool list -p -v output does not follow manpage Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-1.80 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.995]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=0OvF=5U=quip.cz=000.fbsd@elsa.codelab.cz]; MIME_GOOD(-0.10)[text/plain]; R_DKIM_NA(0.00)[]; TO_DN_EQ_ADDR_ALL(0.00)[]; R_SPF_NA(0.00)[no SPF record]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=0OvF=5U=quip.cz=000.fbsd@elsa.codelab.cz]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[quip.cz]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4P11FC0zR7z4KQM X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N If we have some sample pool and list verbose statistics we see following output which is OK: # zpool list -v NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT tank0 492G 5.07G 487G - - 9% 1% 1.00x ONLINE - da0p3 492G 5.07G 487G - - 9% 1.02% But when -p is added to make the output numbers parsable (exact values), the numbers are exact for top level only and the output is nor parsable nor easily human readable (broken columns): # zpool list -v -p NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT tank0 528280977408 5438681088 522842296320 - - 9% 1 1.00x ONLINE - da0p3 492G 5.07G 487G - - 9% 1.02% This behavior is not documented and I think it is unexpected. The same goes when we need to show just some of possible properties, eg.: name and size: # zpool list -v -p -o name,size NAME SIZE tank0 528280977408 da0p3 492G 5.06G 487G - - 9% 1.02% Name and Size is shown for top level but other properties are shown for da0p3 which is again unexpected to me. This is on FreeBSD 12.3-p10, I don't have access to any newere version. Can somebody confirm if this is on newer versions too? And - can this be fixed? Kind regards Miroslav Lachman