diff options
| author | yw161884 <none@none> | 2007-06-28 22:37:39 -0700 |
|---|---|---|
| committer | yw161884 <none@none> | 2007-06-28 22:37:39 -0700 |
| commit | 700682b83aee7f7b038d7f1d7f262ff4bff575d5 (patch) | |
| tree | 264126897080bf16a10a80b291ecdd4055f57fb6 /usr/src/cmd/raidctl | |
| parent | ce51a4a0cae25691927f1d230536b5d994f59ac3 (diff) | |
| download | illumos-joyent-700682b83aee7f7b038d7f1d7f262ff4bff575d5.tar.gz | |
6510052 Wrong error message for "-z" option
6510054 raidctl "-s" option can not work correctly
6510056 raidctl should display correct disk infomation of array
6568605 raidctl mpt plugin cystle clean for continuation checking
6570499 raidctl cli cystle clean for continuation checking
6570500 raidctl common library cystle clean for continuation checking
6571564 raidctl failed when disk member is missing on SAS device
Diffstat (limited to 'usr/src/cmd/raidctl')
| -rw-r--r-- | usr/src/cmd/raidctl/raidctl.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/usr/src/cmd/raidctl/raidctl.c b/usr/src/cmd/raidctl/raidctl.c index dcee7f7ef9..659b98f194 100644 --- a/usr/src/cmd/raidctl/raidctl.c +++ b/usr/src/cmd/raidctl/raidctl.c @@ -933,7 +933,7 @@ do_list(char *disk_argp, char **argv, uint32_t optind, uint8_t is_snapshot) } else { ret = snapshot_ctl(ctl_handle, - FALSE, 0, is_snapshot); + FALSE, 0, is_snapshot); } (void) raidcfg_close_controller( ctl_handle, NULL); @@ -1071,7 +1071,7 @@ do_delete(uint32_t f_flag, char **argv, uint32_t optind) if (f_flag == FALSE) { (void) fprintf(stdout, gettext("Deleting RAID volume " "%s will destroy all data it contains, " - "proceed (%s/%s)? "), array_argp, yesstr, nostr); + "proceed (%s/%s)? "), array_argp, yesstr, nostr); if (!yes()) { (void) fprintf(stdout, gettext("RAID Volume " "%s not deleted.\n\n"), array_argp); @@ -1576,10 +1576,10 @@ snapshot_array(raid_obj_handle_t array_handle, uint8_t indent, uint8_t is_sub, } } else { subarray_handle = raidcfg_list_head(array_handle, - OBJ_TYPE_ARRAY); + OBJ_TYPE_ARRAY); while (subarray_handle > 0) { task_handle = raidcfg_list_head(subarray_handle, - OBJ_TYPE_TASK); + OBJ_TYPE_TASK); if (task_handle > 0) { (void) raidcfg_get_attr(task_handle, &task_attr); @@ -2690,6 +2690,11 @@ calc_size(char *sizep, uint64_t *valp) return (INVALID_ARG); } + if (is_fully_numeric(sizep) == TRUE) { + *valp = atoi(sizep); + return (SUCCESS); + } + len = strlen(sizep); if (len == 0) { return (INVALID_ARG); |
