mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 19:57:43 +03:00
OpenZFS restructuring - zpool
Factor Linux specific functions out of the zpool command.
Reviewed-by: Allan Jude <allanjude@freebsd.org>
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Reviewed-by: Sean Eric Fagan <sef@ixsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #9333
This commit is contained in:
committed by
Brian Behlendorf
parent
7bb0c29468
commit
3283f137d7
@@ -4643,7 +4643,7 @@ get_interval_count(int *argcp, char **argv, float *iv,
|
||||
/*
|
||||
* Determine if the last argument is an integer or a pool name
|
||||
*/
|
||||
if (argc > 0 && isnumber(argv[argc - 1])) {
|
||||
if (argc > 0 && zfs_isnumber(argv[argc - 1])) {
|
||||
char *end;
|
||||
|
||||
errno = 0;
|
||||
@@ -4673,7 +4673,7 @@ get_interval_count(int *argcp, char **argv, float *iv,
|
||||
* If the last argument is also an integer, then we have both a count
|
||||
* and an interval.
|
||||
*/
|
||||
if (argc > 0 && isnumber(argv[argc - 1])) {
|
||||
if (argc > 0 && zfs_isnumber(argv[argc - 1])) {
|
||||
char *end;
|
||||
|
||||
errno = 0;
|
||||
|
||||
Reference in New Issue
Block a user