From nobody Fri Sep 25 18:50:25 2026 X-Original-To: dev-commits-src-all@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 4hs0Bq2gWcz6tmYD for ; Fri, 25 Sep 2026 18:50:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hs0Bp6l46z4mJm for ; Fri, 25 Sep 2026 18:50:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790362226; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3nDzbMZK2JNLltzMemmSSeLhzEp99w59Gqup3RxtUJQ=; b=tEdUgychuaXKPzCMMmOPcGNtBkC+LZ/CMoB4xZk9o6Gry6j6rH6Zb1qvJm5ba6NRdAXkoU iND28SF/t0h48p6Npr9LUU6y59Z0xCeNyx/R2HnuwF9Tyc3cvFEwf9YYrG6I21EBp5ZpRQ zu9bmn2OP+aGkZFj/qz5szQwzV6MuJEDPIoUaXNONHssuzPDYGHaD/5qbnF8YPDTD8pvQc A60jIgKTMR9DOnKuSJJNwWR11PdNhIJ32CjBVi6cGrztpTY4kHBLRS3rrfqxy03+6pls9i 7qfhbNsP+mSy68SEkP+oP39rLYgSNCIq8ibyeWtUzPIXirOJj7S21O25xdQX9g== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1790362226; b=hPayFupigG3eS//gQk64hoVm6JXyWWKBs03Cbg0PxQUKNLdynrSTRiLFz4/PQ1uh1qRi16 hopdtecPEGuHHYVbtMp5PWX76s4Iv7CdJNhJcX83URuyuqbBbs7nzfEDg9IbvuTPE7EvJv 1BS08/XyFp3t5XHARw6YydBMaNcDJmJoCZDku9ii8NpRQBCMisTe82EgoL6Bqmb+q+JYrX 1nCymyxcFPD/fM7T+4Q6jHH/l6X7A96nCzbGrM9xGCkfF3Q3+ww+9X/pL1vnYMstuUK3N9 Kqd4EjwWby1OahIvs9UlxwyEC0198aOtJzuy6pT92aQl6iWU3+Nzj8g59VhBZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790362226; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3nDzbMZK2JNLltzMemmSSeLhzEp99w59Gqup3RxtUJQ=; b=BNaMphEs9vAVWTHp7z5EcHEnBmnU+a7fi/8vj4xJa0ZXWTu4ti1dmoqKXZ5W6MwIFSL4hq 1wzhBxxjTxBTHdQFcrpYWuak2d5zoMo2lyaYE9dMQ+8puDHp83P9fl6bFrXdYYokBjhT8g BTS9nWwaGTXXkYNpqdUzmWDZ2Ffz3je+TUDUdezaaqJBk+2+3EiKmkn7QGoGlxLW+4yaGo uSpo90vot+AApRH1XRugmJn8uBNc3+pqr6YRWtr7n6z4nw1VUJOpCYolhvOEkonL6fpNUM sGLwmmymBlYwojS25QRgVM4s2gtdnGXgtkzJuwPBNIwJO0KS0hyNhf/tvlbWEQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hs0Bn5RDPzM0X for ; Fri, 25 Sep 2026 18:50:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 304b7 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 25 Sep 2026 18:50:25 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alan Somers Subject: git: 1a6f201c5bf8 - stable/15 - zonectl: display conventional zones better during RZ List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: asomers X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 1a6f201c5bf8a786de7b0f96c1ad4934d6cac343 Auto-Submitted: auto-generated Date: Fri, 25 Sep 2026 18:50:25 +0000 Message-Id: <6ab6c271.304b7.51d39888@gitrepo.freebsd.org> The branch stable/15 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=1a6f201c5bf8a786de7b0f96c1ad4934d6cac343 commit 1a6f201c5bf8a786de7b0f96c1ad4934d6cac343 Author: Alan Somers AuthorDate: 2026-06-09 18:06:13 +0000 Commit: Alan Somers CommitDate: 2026-09-25 17:34:10 +0000 zonectl: display conventional zones better during RZ zonectl's Report Zones subcommand displays a tabular list of zones. A conventional zone's WP column is displayed as 0xffffffffffffffff , the literal value that the HDD reports. But that's too wide for the column, causing the text to be misaligned. It's also not really meaningful, because the Write Pointer isn't really defined for a Conventional zone. Change it to "-1" to fix the text misalignment. MFC after: 2 weeks Sponsored by: ConnectWise Reviewed by: fuz Differential Revision: https://reviews.freebsd.org/D57512 (cherry picked from commit 4735ef6196bcb2802ad7fc7d1b8054a4756d786b) --- usr.sbin/zonectl/zonectl.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/usr.sbin/zonectl/zonectl.c b/usr.sbin/zonectl/zonectl.c index 53e5e6599597..9dc6ddfd1aae 100644 --- a/usr.sbin/zonectl/zonectl.c +++ b/usr.sbin/zonectl/zonectl.c @@ -288,11 +288,22 @@ zonectl_print_rz(struct disk_zone_report *report, zone_output_flags out_flags, for (i = 0; i < report->entries_filled; i++) { entry = &report->entries[i]; - printf("%#*jx, %*ju, %#*jx, ", field_widths[ZONE_FW_START], + printf("%#*jx, %*ju, ", field_widths[ZONE_FW_START], (uintmax_t)entry->zone_start_lba, field_widths[ZONE_FW_LEN], - (uintmax_t)entry->zone_length, field_widths[ZONE_FW_WP], - (uintmax_t)entry->write_pointer_lba); + (uintmax_t)entry->zone_length); + if (entry->write_pointer_lba == 0xffffffffffffffff) { + /* + * This value is reported by HDDs for conventional + * zones. It really means "N/A". Reported it as -1, + * even though it's technically unsigned, to save + * space. + */ + printf("%*d, ", field_widths[ZONE_FW_WP], -1); + } else { + printf("%#*jx, ", field_widths[ZONE_FW_WP], + (uintmax_t)entry->write_pointer_lba); + } switch (entry->zone_type) { case DISK_ZONE_TYPE_CONVENTIONAL: