11747 zpool iostat -v no longer shows titles for log sections

Review Request #2347 — Created Sept. 24, 2019 and submitted

citrus
illumos-gate
master
11747
6491943...
general
jjelinek
11747 zpool iostat -v no longer shows titles for log sections

Before:

% pfexec zpool iostat -v test
               capacity     operations    bandwidth
pool        alloc   free   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
test         624K   895M      0      0  1.86K  8.46K
  c6t1d0     624K   895M      0      0  1.85K  7.29K
  c3t0d0        0  7.50G      0      0     11  1.17K
----------  -----  -----  -----  -----  -----  -----

After:

% pfexec ./zpool iostat -v test
               capacity     operations    bandwidth
pool        alloc   free   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
test         624K   895M      0      0  1.86K  8.47K
  c6t1d0     624K   895M      0      0  1.85K  7.30K
logs            -      -      -      -      -      -
  c3t0d0        0  7.50G      0      0     11  1.17K
----------  -----  -----  -----  -----  -----  -----
citrus
citrus
tsoome
  1. Ship It!
  2. 
      
jimklimov
  1. Ship It!
  2. 
      
yuripv
  1. 
      
  2. usr/src/cmd/zpool/zpool_main.c (Diff revision 1)
     
     

    I don't see a scripted option (-H?) for iostat subcommand - is this check really needed here?

    1. No, not required, but I kept as much in common with what's in ZoL as I could.
      Hopefully we can pull over the rest of the changes to zpool iostat in the near future.

    2. I'm already working on porting that, but it will be a while before I'm done, so I appreciate keeping good alignment.

  3. 
      
jjelinek
  1. This looks like the best analogue to the current ZoL implementation, thanks for fixing it.

  2. 
      
citrus
Review request changed

Status: Closed (submitted)

Loading...