Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174220629
D57512.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D57512.diff
View Options
diff --git a/usr.sbin/zonectl/zonectl.c b/usr.sbin/zonectl/zonectl.c
--- a/usr.sbin/zonectl/zonectl.c
+++ b/usr.sbin/zonectl/zonectl.c
@@ -288,11 +288,22 @@
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:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 2, 11:26 AM (8 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35010685
Default Alt Text
D57512.diff (1 KB)
Attached To
Mode
D57512: zonectl: display conventional zones better during RZ
Attached
Detach File
Event Timeline
Log In to Comment