/titanic_50/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd.h | 521 } ndmpd_session_t; typedef 701 ndmpd_session_t *tr_session; 707 ndmpd_session_t *bs_session; 747 extern void ndmpd_data_cleanup(ndmpd_session_t *); 748 extern int ndmpd_data_init(ndmpd_session_t *); 749 extern char *ndmp_data_get_mover_mode(ndmpd_session_t *); 750 extern void ndmpd_data_error(ndmpd_session_t *, ndmp_data_halt_reason); 756 extern int ndmpd_mover_init(ndmpd_session_t *); 757 extern void ndmpd_mover_cleanup(ndmpd_session_t *); 758 extern ndmp_error ndmpd_mover_connect(ndmpd_session_t *, [all …]
|
H A D | ndmpd_callbacks.c | 81 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in ndmpd_api_done_v2() 170 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in ndmpd_api_log_v2() 218 ndmpd_session_t *session = (ndmpd_session_t *)client_data; in ndmpd_api_read_v2() 251 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in ndmpd_api_seek_v2() 320 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in ndmpd_api_file_recovered_v2() 370 ndmpd_session_t *session = (ndmpd_session_t *)client_data; in ndmpd_api_write_v2() 407 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in ndmpd_api_done_v3() 449 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in ndmpd_api_log_v3() 497 ndmpd_session_t *session = (ndmpd_session_t *)client_data; in ndmpd_api_write_v3() 538 ndmpd_session_t *session = (ndmpd_session_t *)client_data; in ndmpd_api_read_v3() [all …]
|
H A D | ndmpd_connect.c | 77 static void ndmp_connect_get_scsi_v2(ndmpd_session_t *session, 79 static void ndmp_connect_get_tape_v2(ndmpd_session_t *session, 81 static void ndmp_connect_get_mover_v2(ndmpd_session_t *session, 83 static void ndmp_connect_get_data_v2(ndmpd_session_t *session, 87 static void ndmp_connect_get_mover_v3(ndmpd_session_t *session, 89 static void ndmp_connect_get_data_v3(ndmpd_session_t *session, 146 ndmpd_session_t *session; in ndmpd_connect_open_v2() 150 if (!(session = (ndmpd_session_t *)ndmp_get_client_data(connection))) in ndmpd_connect_open_v2() 195 ndmpd_session_t *session; in ndmpd_connect_client_auth_v2() 407 ndmpd_session_t *session; in ndmpd_connect_close_v2() [all …]
|
H A D | ndmpd_mover.c | 64 static int create_listen_socket_v2(ndmpd_session_t *session, ulong_t *addr, 66 static int tape_read(ndmpd_session_t *session, char *data); 67 static int change_tape(ndmpd_session_t *session); 68 static int discard_data(ndmpd_session_t *session, ulong_t length); 69 static int mover_tape_read_one_buf(ndmpd_session_t *session, tlm_buffer_t *buf); 70 static int mover_socket_write_one_buf(ndmpd_session_t *session, 72 static int start_mover_for_restore(ndmpd_session_t *session); 73 static int mover_socket_read_one_buf(ndmpd_session_t *session, 75 static int mover_tape_write_one_buf(ndmpd_session_t *session, 77 static int start_mover_for_backup(ndmpd_session_t *session); [all …]
|
H A D | ndmpd_data.c | 52 static int ndmpd_data_error_send_v4(ndmpd_session_t *session, 54 static int ndmpd_data_error_send(ndmpd_session_t *session, 57 static int create_listen_socket_v3(ndmpd_session_t *session, ulong_t *addr, 59 static ndmp_error data_connect_sock_v3(ndmpd_session_t *session, ulong_t addr, 61 static int discard_data_v3(ndmpd_session_t *session, ulong_t length); 62 static void nlp_release_job_stat(ndmpd_session_t *session); 63 static u_longlong_t ndmpd_data_get_info(ndmpd_session_t *session); 65 static ndmp_error ndmpd_tar_start_backup_v2(ndmpd_session_t *, char *, 67 static ndmp_error ndmpd_tar_start_recover_v2(ndmpd_session_t *, char *, 69 static ndmp_error ndmpd_tar_start_backup_v3(ndmpd_session_t *, char *, [all …]
|
H A D | ndmpd_zfs.c | 74 static int ndmpd_zfs_header_write(ndmpd_session_t *); 173 ndmpd_zfs_init(ndmpd_session_t *session) in ndmpd_zfs_init() 288 ndmpd_session_t *session = (ndmpd_session_t *) in ndmpd_zfs_close_fds() 335 ndmpd_zfs_header_write(ndmpd_session_t *session) in ndmpd_zfs_header_write() 466 ndmpd_session_t *session = (ndmpd_session_t *) in ndmpd_zfs_backup_starter() 501 ndmpd_session_t *session = (ndmpd_session_t *) in ndmpd_zfs_send_fhist() 541 ndmpd_session_t *session = (ndmpd_session_t *) in ndmpd_zfs_backup() 613 ndmpd_session_t *session = (ndmpd_session_t *) in ndmpd_zfs_backup_send_read() 678 ndmpd_session_t *session = (ndmpd_session_t *) in ndmpd_zfs_backup_tape_write() 757 ndmpd_session_t *session = (ndmpd_session_t *) in ndmpd_zfs_restore_starter() [all …]
|
H A D | ndmpd_mark.c | 69 ndmpd_session_t *mp_session; 185 traverse(ndmpd_session_t *session, ndmp_lbr_params_t *nlp, in traverse() 407 mark_inodes_v2(ndmpd_session_t *session, ndmp_lbr_params_t *nlp, char *path) in mark_inodes_v2() 523 mark_common_v2(ndmpd_session_t *session, ndmp_lbr_params_t *nlp) in mark_common_v2() 570 mark_tar_inodes_v2(ndmpd_session_t *session, ndmp_lbr_params_t *nlp) in mark_tar_inodes_v2() 597 mark_dump_inodes_v2(ndmpd_session_t *session, ndmp_lbr_params_t *nlp) in mark_dump_inodes_v2() 617 ndmpd_mark_inodes_v2(ndmpd_session_t *session, ndmp_lbr_params_t *nlp) in ndmpd_mark_inodes_v2() 653 ndmpd_abort_marking_v2(ndmpd_session_t *session) in ndmpd_abort_marking_v2() 680 mark_tokv3(ndmpd_session_t *session, ndmp_lbr_params_t *nlp, char *path) in mark_tokv3() 833 mark_lbrv3(ndmpd_session_t *session, ndmp_lbr_params_t *nlp, char *path) in mark_lbrv3() [all …]
|
H A D | ndmpd_util.c | 188 ndmpd_add_file_handler(ndmpd_session_t *session, void *cookie, int fd, in ndmpd_add_file_handler() 222 ndmpd_remove_file_handler(ndmpd_session_t *session, int fd) in ndmpd_remove_file_handler() 291 ndmp_check_mover_state(ndmpd_session_t *session) in ndmp_check_mover_state() 350 ndmpd_select(ndmpd_session_t *session, boolean_t block, ulong_t class_mask) in ndmpd_select() 499 ndmpd_save_env(ndmpd_session_t *session, ndmp_pval *env, ulong_t envlen) in ndmpd_save_env() 551 ndmpd_free_env(ndmpd_session_t *session) in ndmpd_free_env() 586 ndmpd_save_nlist_v2(ndmpd_session_t *session, ndmp_name *nlist, in ndmpd_save_nlist_v2() 639 ndmpd_free_nlist_v2(ndmpd_session_t *session) in ndmpd_free_nlist_v2() 667 ndmpd_free_nlist_v3(ndmpd_session_t *session) in ndmpd_free_nlist_v3() 701 ndmpd_save_nlist_v3(ndmpd_session_t *session, ndmp_name_v3 *nlist, in ndmpd_save_nlist_v3() [all …]
|
H A D | ndmpd_tape.c | 53 static void unbuffered_read(ndmpd_session_t *session, char *buf, long wanted, 112 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_tape_open_v2() 246 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_tape_close_v2() 278 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_tape_get_state_v2() 354 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_tape_mtio_v2() 496 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_tape_read_v2() 545 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_tape_execute_cdb_v2() 609 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_tape_get_state_v3() 684 tape_is_at_bot(ndmpd_session_t *session) in tape_is_at_bot() 704 tape_is_at_bof(ndmpd_session_t *session) in tape_is_at_bof() [all …]
|
H A D | ndmpd_scsi.c | 103 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_scsi_close_v2() 153 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_scsi_get_state_v2() 225 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_scsi_reset_device_v2() 293 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_scsi_execute_cdb_v2() 414 ndmpd_session_t *session = ndmp_get_client_data(connection); in common_open() 506 ndmpd_session_t *session = ndmp_get_client_data(connection); in common_set_target()
|
H A D | ndmpd_fhistory.c | 77 static void ndmpd_file_history_cleanup_v2(ndmpd_session_t *session, 79 static void ndmpd_file_history_cleanup_v3(ndmpd_session_t *session, 119 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in ndmpd_api_file_history_path_v2() 211 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in ndmpd_api_file_history_dir_v2() 299 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in ndmpd_api_file_history_node_v2() 393 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in ndmpd_api_file_history_file_v3() 524 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in ndmpd_api_file_history_dir_v3() 632 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in ndmpd_api_file_history_node_v3() 1109 ndmpd_file_history_init(ndmpd_session_t *session) in ndmpd_file_history_init() 1156 ndmpd_file_history_cleanup_v2(ndmpd_session_t *session, boolean_t send_flag) in ndmpd_file_history_cleanup_v2() [all …]
|
H A D | ndmpd_tar3.c | 86 ndmpd_session_t *bp_session; 363 setupsels(ndmpd_session_t *session, ndmpd_module_params_t *params, in setupsels() 789 log_bk_params_v3(ndmpd_session_t *session, ndmpd_module_params_t *params, in log_bk_params_v3() 1438 backup_alloc_structs_v3(ndmpd_session_t *session, char *jname) in backup_alloc_structs_v3() 1513 restore_alloc_structs_v3(ndmpd_session_t *session, char *jname) in restore_alloc_structs_v3() 1582 free_structs_v3(ndmpd_session_t *session, char *jname) in free_structs_v3() 2366 tar_backup_v3(ndmpd_session_t *session, ndmpd_module_params_t *params, in tar_backup_v3() 2635 fix_nlist_v3(ndmpd_session_t *session, ndmpd_module_params_t *params, in fix_nlist_v3() 2793 allvalidfh(ndmpd_session_t *session, ndmpd_module_params_t *params) in allvalidfh() 2831 log_rs_params_v3(ndmpd_session_t *session, ndmpd_module_params_t *params, in log_rs_params_v3() [all …]
|
H A D | ndmpd_tar.c | 79 backup_create_structs(ndmpd_session_t *session, char *jname) in backup_create_structs() 148 restore_create_structs(ndmpd_session_t *session, char *jname) in restore_create_structs() 269 backup_release_structs(ndmpd_session_t *session) in backup_release_structs() 954 ndmp_tar_writer(ndmpd_session_t *session, ndmpd_module_params_t *mod_params, in ndmp_tar_writer() 1078 ndmpd_session_t *session; in ndmp_tar_reader() 1174 ndmpd_tar_backup(ndmpd_session_t *session, ndmpd_module_params_t *mod_params, in ndmpd_tar_backup() 1270 ndmpd_tar_restore(ndmpd_session_t *session, ndmpd_module_params_t *mod_params, in ndmpd_tar_restore() 1441 get_nfiles(ndmpd_session_t *session, ndmpd_module_params_t *params) in get_nfiles() 1623 ndmp_backup_extract_params(ndmpd_session_t *session, in ndmp_backup_extract_params() 1726 log_bk_params_v2(ndmpd_session_t *session, ndmpd_module_params_t *params, in log_bk_params_v2() [all …]
|
H A D | ndmpd_config.c | 236 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_config_get_auth_attr_v2() 381 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_config_get_auth_attr_v3() 880 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_config_get_server_info_v3() 1050 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_config_get_ext_list_v4() 1092 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_config_set_ext_list_v4()
|
H A D | ndmpd_comm.c | 806 ndmpd_session_t session; in connection_handler() 939 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in connection_file_handler()
|