Project

General

Profile

Actions

Bug #13923

open

zpool list -v output is misaligned

Added by Yuri Pankov 4 months ago. Updated 4 months ago.

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

90%

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

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 4 months 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 4 months 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 4 months ago

  • Gerrit CR set to 1588
Actions #4

Updated by Yuri Pankov 4 months 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 4 months ago

  • Gerrit CR set to 1588
Actions

Also available in: Atom PDF