11682 zpool iostat and status improvements

Review Request #2478 — Created Jan. 6, 2020 and submitted

jjelinek
illumos-gate
11682
general

Port from OpenZFS of a set of zpool 'iostat' and 'status' enhancements. Also added kstats in the places where the code was originally using Linux /proc to expose various state. Also updated various zfs-test cases to remove old workaround for the previously missing zpool iostat handling (this brings these test back into closer alignment with OpenZFS).



  • 0
  • 0
  • 4
  • 2
  • 6
Description From Last Updated
jjelinek
citrus
  1. Ship It!
    1. Andy, thanks for the code review. I'm going to wait on this change until after my changes for '12235 Add libzutil for libzfs or libzpool consumers' has integrated. I'll rebase this on top of that work, which will allow me to simply this iostat change and remove some of the code that is currently in this patch.

  2. 
      
jjelinek
seeemef@mac.com
  1. 
      
  2. usr/src/cmd/zpool/zpool_main.c (Diff revision 3)
     
     

    Is this leaked if return at line 3990?

    1. Yes. This same issue exists in OpenZFS but I fixed it here for illumos.

  3. usr/src/cmd/zpool/zpool_main.c (Diff revision 3)
     
     

    Curious if there's any value to multiple gettext() calls for an English sentence split arbitrarily in the middle

    1. There is no value but this is how the code is written in OpenZFS so I'd like to leave this as-is.

  4. usr/src/cmd/zpool/zpool_main.c (Diff revision 3)
     
     

    I see a sleep() converted to fsleep() on line 3638. Should this be done too?

    1. Yes, I changed it to match OpenZFS which uses flseep here.

  5. usr/src/man/man1m/zpool.1m (Diff revision 3)
     
     

    Comma splice?

    1. This seems ok to me, so I left it as-is.

  6. usr/src/man/man1m/zpool.1m (Diff revision 3)
     
     

    Would .Sy be preferred for mdoc?

  7. usr/src/uts/common/fs/zfs/spa_misc.c (Diff revision 3)
     
     

    comma splice?

  8. 
      
jjelinek
seeemef@mac.com
  1. Ship It!
  2. 
      
citrus
  1. Ship It!
  2. 
      
jjelinek
Review request changed

Status: Closed (submitted)

Loading...