Project

General

Profile

Actions

Bug #13923

closed

zpool list -v output is misaligned

Added by Yuri Pankov over 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

Not sure if this is recent bug or something old:

$ zpool list -v
NAME        SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
data       398G  1.62G   396G        -         -     0%     0%  1.00x  ONLINE  -
  c2t2d0   398G  1.62G   396G        -         -     0%  0.40%
rpool     99.5G  6.15G  93.4G        -         -     0%     6%  1.00x  ONLINE  -
  c2t1d0  99.5G  6.15G  93.4G        -         -     0%  6.17%

Actions #1

Updated by Yuri Pankov over 2 years ago

It gets more interesting with additional pool vdevs, some columns are properly aligned with header, dashes are in drunken mode though:

$ zpool list -v
NAME         SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
data       398G  3.89G   394G        -         -     0%     0%  1.00x  ONLINE  -
  c2t2d0   398G  3.89G   394G        -         -     0%  0.97%
rpool     99.5G  6.53G  93.0G        -         -     0%     6%  1.00x  ONLINE  -
  c2t1d0  99.5G  6.53G  93.0G        -         -     0%  6.56%
test        31.5G   118K  31.5G        -         -     0%     0%  1.00x  ONLINE  -
  c1t1d0    31.5G   118K  31.5G        -         -     0%  0.00%
logs            -      -      -         -      -      -
  mirror    31.5G      0  31.5G        -         -     0%  0.00%
    c1t2d0      -      -      -        -         -      -      -
    c1t3d0      -      -      -        -         -      -      -
cache           -      -      -         -      -      -
  c1t4d0    32.0G      0  32.0G        -         -     0%  0.00%

Actions #2

Updated by Yuri Pankov over 2 years ago

  • Subject changed from zpool list -v is one column off to zpool list -v output is misaligned
  • Status changed from New to In Progress
  • Assignee set to Yuri Pankov
  • % Done changed from 0 to 90
  • Difficulty changed from Medium to Bite-size
Actions #3

Updated by Electric Monk over 2 years ago

  • Gerrit CR set to 1588
Actions #4

Updated by Yuri Pankov over 2 years ago

  • Gerrit CR deleted (1588)

With the proposed change:

$ LD_LIBRARY_PATH=~/ws/listv/proto/root_i386/lib/amd64 ./zpool list -v
NAME         SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
data         398G  5.56G   392G        -         -     0%     1%  1.00x    ONLINE  -
 c2t2d0      398G  5.56G   392G        -         -     0%  1.39%      -    ONLINE
rpool       99.5G  6.53G  93.0G        -         -     0%     6%  1.00x    ONLINE  -
 c2t1d0     99.5G  6.53G  93.0G        -         -     0%  6.56%      -    ONLINE
test        31.5G   171K  31.5G        -         -     0%     0%  1.00x    ONLINE  -
 mirror     31.5G   171K  31.5G        -         -     0%  0.00%      -    ONLINE
  c1t1d0        -      -      -        -         -      -      -      -    ONLINE
  c1t2d0        -      -      -        -         -      -      -      -    ONLINE
 logs           -      -      -        -         -      -      -      -         -
  c1t3d0    31.5G      0  31.5G        -         -     0%  0.00%      -    ONLINE
 cache          -      -      -        -         -      -      -      -         -
  c1t4d0    32.0G      0  32.0G        -         -     0%  0.00%      -    ONLINE

Actions #5

Updated by Yuri Pankov over 2 years ago

  • Gerrit CR set to 1588
Actions #7

Updated by Yuri Pankov about 1 year ago

  • Status changed from In Progress to Pending RTI
  • % Done changed from 90 to 100
Actions #8

Updated by Electric Monk about 1 year ago

  • Status changed from Pending RTI to Closed

git commit 609febc9a48c79a089214cb5d882759a72a38513

commit  609febc9a48c79a089214cb5d882759a72a38513
Author: Brian Behlendorf <behlendorf1@llnl.gov>
Date:   2022-09-29T18:15:23.000Z

    13923 zpool list -v output is misaligned
    Reviewed by: Toomas Soome <tsoome@me.com>
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Approved by: Patrick Mooney <pmooney@pfmooney.com>

Actions

Also available in: Atom PDF