zfs/cmd/zpool
наб dfc25ea91c libzutil: zfs_isnumber(): return false if input empty
zpool list, which is the only user, would mistakenly try to parse the
empty string as the interval in this case:

  $ zpool list "a"
  cannot open 'a': no such pool
  $ zpool list ""
  interval cannot be zero
  usage: <usage string follows>
which is now symmetric with zpool get:
  $ zpool list ""
  cannot open '': name must begin with a letter

Avoid breaking the  "interval cannot be zero" string.
There simply isn't a need for this, and it's user-facing.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11841 
Closes #11843
2021-06-23 13:22:14 -07:00
..
os Remove dead code 2020-06-18 12:21:18 -07:00
zpool.d Style fixes 2020-06-27 17:38:55 -07:00
.gitignore Add .gitignore files to exclude build products 2010-01-08 11:35:17 -08:00
Makefile.am Use abs_top_builddir when referencing libraries 2020-07-10 14:26:32 -07:00
zpool_iter.c zpool: correctly align columns with -p 2020-11-17 12:20:01 -08:00
zpool_main.c libzutil: zfs_isnumber(): return false if input empty 2021-06-23 13:22:14 -07:00
zpool_util.c OpenZFS restructuring - zpool 2019-09-30 12:16:06 -07:00
zpool_util.h zpool: correctly align columns with -p 2020-11-17 12:20:01 -08:00
zpool_vdev.c Changes to make openzfs build within FreeBSD buildworld 2020-07-31 21:30:31 -07:00