Page MenuHomeFreeBSD

zonectl: display conventional zones better during RZ
ClosedPublic

Authored by asomers on Jun 9 2026, 6:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jul 15, 7:25 AM
Unknown Object (File)
Wed, Jul 15, 7:25 AM
Unknown Object (File)
Tue, Jul 7, 7:15 PM
Unknown Object (File)
Sat, Jul 4, 9:19 AM
Unknown Object (File)
Sun, Jun 28, 1:03 PM
Unknown Object (File)
Wed, Jun 24, 9:40 AM
Unknown Object (File)
Jun 18 2026, 1:28 PM
Unknown Object (File)
Jun 17 2026, 1:26 PM
Subscribers

Details

Summary

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 "N/A" to fix the text misalignment.

MFC after: 2 weeks
Sponsored by: ConnectWise

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Before:

55880 zones, Maximum LBA 0xda47ffff (3662151679)
Zone lengths are the same, types vary
  Start LBA  Length       WP LBA      Zone Type      Condition      Sequential             Reset
          0,  65536, 0xffffffffffffffff,  Conventional,           NWP,     Sequential,  No Reset Needed
    0x10000,  65536, 0xffffffffffffffff,  Conventional,           NWP,     Sequential,  No Reset Needed

After:

55880 zones, Maximum LBA 0xda47ffff (3662151679)
Zone lengths are the same, types vary
  Start LBA  Length       WP LBA      Zone Type      Condition      Sequential             Reset
          0,  65536,         N/A,  Conventional,           NWP,     Sequential,  No Reset Needed
    0x10000,  65536,         N/A,  Conventional,           NWP,     Sequential,  No Reset Needed

Can we change it to say -1 so it still parses as a number? n/a looks like something scripts will dislike.

In D57512#1318003, @fuz wrote:

Can we change it to say -1 so it still parses as a number? n/a looks like something scripts will dislike.

Yes we can. In fact, I tried that first, but switched to "N/A" because I thought that -1 might look like a mistake. @ken what do you think?

This revision was not accepted when it landed; it landed in state Needs Review.Sat, Jul 11, 8:32 PM
This revision was automatically updated to reflect the committed changes.