Home
last modified time | relevance | path

Searched refs:lines_cnt (Results 1 – 8 of 8) sorted by relevance

/freebsd/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_iter.c412 (data->lines_cnt + 1) * sizeof (*data->lines)); in vdev_process_cmd_output()
417 data->lines[data->lines_cnt] = strdup(val); in vdev_process_cmd_output()
418 data->lines_cnt++; in vdev_process_cmd_output()
448 int lines_cnt = 0; in vdev_run_cmd() local
458 &lines_cnt); in vdev_run_cmd()
466 for (i = 0; i < lines_cnt; i++) in vdev_run_cmd()
472 libzfs_free_str_array(lines, lines_cnt); in vdev_run_cmd()
602 data->lines_cnt = data->cols_cnt = 0; in for_each_vdev_run_cb()
698 for (int j = 0; j < vcdl->data[i].lines_cnt; j++) in free_vdev_cmd_data_list()
H A Dzpool_vdev.c944 lines_to_stderr(char *lines[], int lines_cnt) in lines_to_stderr() argument
947 for (i = 0; i < lines_cnt; i++) { in lines_to_stderr()
1049 int lines_cnt = 0; in make_disks() local
1068 &lines_cnt) != 0) { in make_disks()
1072 if (lines_cnt > 0) { in make_disks()
1075 lines_to_stderr(lines, lines_cnt); in make_disks()
1078 libzfs_free_str_array(lines, lines_cnt); in make_disks()
1081 libzfs_free_str_array(lines, lines_cnt); in make_disks()
H A Dzpool_util.h90 int lines_cnt; /* Number of lines in the array */ member
H A Dzpool_main.c2656 for (j = data->cols_cnt; j < data->lines_cnt; j++) { in zpool_nvlist_cmd()
2708 for (j = data->cols_cnt; j < data->lines_cnt; j++) { in zpool_print_cmd()
6219 int lines_cnt = 0; in print_zpool_script_help() local
6223 &lines_cnt); in print_zpool_script_help()
6224 if (rc != 0 || lines == NULL || lines_cnt <= 0) { in print_zpool_script_help()
6226 libzfs_free_str_array(lines, lines_cnt); in print_zpool_script_help()
6230 for (int i = 0; i < lines_cnt; i++) in print_zpool_script_help()
6234 libzfs_free_str_array(lines, lines_cnt); in print_zpool_script_help()
/freebsd/sys/contrib/openzfs/cmd/zed/agents/
H A Dzfs_mod.c153 static void lines_to_zed_log_msg(char **lines, int lines_cnt) in lines_to_zed_log_msg() argument
156 for (i = 0; i < lines_cnt; i++) { in lines_to_zed_log_msg()
216 int lines_cnt = 0; in zfs_process_add() local
414 &lines_cnt) != 0) { in zfs_process_add()
419 if (lines_cnt > 0) { in zfs_process_add()
422 lines_to_zed_log_msg(lines, lines_cnt); in zfs_process_add()
424 libzfs_free_str_array(lines, lines_cnt); in zfs_process_add()
450 vdev, "autoreplace", &lines, &lines_cnt) != 0) { in zfs_process_add()
455 if (lines_cnt > 0) { in zfs_process_add()
458 lines_to_zed_log_msg(lines, lines_cnt); in zfs_process_add()
[all …]
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_util.c884 int lines_cnt = 0; in libzfs_read_stdout_from_fd() local
895 tmp = realloc(tmp_lines, sizeof (*tmp_lines) * (lines_cnt + 1)); in libzfs_read_stdout_from_fd()
906 tmp_lines[lines_cnt] = strdup(line); in libzfs_read_stdout_from_fd()
907 if (tmp_lines[lines_cnt] == NULL) in libzfs_read_stdout_from_fd()
909 ++lines_cnt; in libzfs_read_stdout_from_fd()
914 return (lines_cnt); in libzfs_read_stdout_from_fd()
919 char **lines[], int *lines_cnt) in libzfs_run_process_impl() argument
975 *lines_cnt = libzfs_read_stdout_from_fd(link[0], lines); in libzfs_run_process_impl()
997 char **lines[], int *lines_cnt) in libzfs_run_process_get_stdout() argument
999 return (libzfs_run_process_impl(path, argv, env, 0, lines, lines_cnt)); in libzfs_run_process_get_stdout()
[all …]
H A Dlibzfs.abi8432 <parameter type-id='7292109c' name='lines_cnt'/>
8440 <parameter type-id='7292109c' name='lines_cnt'/>
8551 <parameter type-id='7292109c' name='lines_cnt'/>
8561 <parameter type-id='7292109c' name='lines_cnt'/>
/freebsd/sys/contrib/openzfs/include/
H A Dlibzfs.h341 const char *prepare_str, char **lines[], int *lines_cnt);
344 char **lines[], int *lines_cnt);