zfs/lib/libzutil
наб 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 Fix pointer-is-uint64_t-sized assumption in the ioctl path 2020-11-11 11:09:41 -08:00
Makefile.am libzutil depends on libnvpair 2020-09-15 18:36:03 -07:00
zutil_device_path.c OpenZFS restructuring - libzutil 2019-10-03 10:20:44 -07:00
zutil_import.c zpool import cachefile improvements 2021-06-23 13:22:14 -07:00
zutil_import.h OpenZFS restructuring - libzutil 2019-10-03 10:20:44 -07:00
zutil_nicenum.c libzutil: zfs_isnumber(): return false if input empty 2021-06-23 13:22:14 -07:00
zutil_pool.c Add libzutil for libzfs or libzpool consumers 2018-11-05 11:22:33 -08:00