Lines Matching refs:params

363 setupsels(ndmpd_session_t *session, ndmpd_module_params_t *params,  in setupsels()  argument
376 MOD_LOGV3(params, NDMP_LOG_ERROR, "Insufficient memory.\n"); in setupsels()
401 ep = (mem_ndmp_name_v3_t *)MOD_GETNAME(params, i); in setupsels()
651 is_valid_backup_dir_v3(ndmpd_module_params_t *params, char *bkpath) in is_valid_backup_dir_v3() argument
657 MOD_LOGV3(params, NDMP_LOG_ERROR, in is_valid_backup_dir_v3()
663 MOD_LOGV3(params, NDMP_LOG_ERROR, "\"%s\" %s.\n", in is_valid_backup_dir_v3()
669 MOD_LOGV3(params, NDMP_LOG_ERROR, in is_valid_backup_dir_v3()
676 MOD_LOGV3(params, NDMP_LOG_ERROR, in is_valid_backup_dir_v3()
700 log_date_token_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp) in log_date_token_v3() argument
702 MOD_LOGV3(params, NDMP_LOG_NORMAL, "Token sequence counter: %d.\n", in log_date_token_v3()
705 MOD_LOGV3(params, NDMP_LOG_NORMAL, "Date of the last backup: %s.\n", in log_date_token_v3()
709 MOD_LOGV3(params, NDMP_LOG_NORMAL, in log_date_token_v3()
730 log_lbr_bk_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp) in log_lbr_bk_v3() argument
732 MOD_LOGV3(params, NDMP_LOG_NORMAL, in log_lbr_bk_v3()
737 MOD_LOGV3(params, NDMP_LOG_NORMAL, in log_lbr_bk_v3()
758 log_level_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp) in log_level_v3() argument
760 MOD_LOGV3(params, NDMP_LOG_NORMAL, in log_level_v3()
764 MOD_LOGV3(params, NDMP_LOG_NORMAL, in log_level_v3()
768 MOD_LOGV3(params, NDMP_LOG_NORMAL, "Update: %s.\n", in log_level_v3()
789 log_bk_params_v3(ndmpd_session_t *session, ndmpd_module_params_t *params, in log_bk_params_v3() argument
792 MOD_LOGV3(params, NDMP_LOG_NORMAL, "Backing up \"%s\".\n", in log_bk_params_v3()
796 MOD_LOGV3(params, NDMP_LOG_NORMAL, in log_bk_params_v3()
800 MOD_LOGV3(params, NDMP_LOG_NORMAL, "File history: %c.\n", in log_bk_params_v3()
804 log_date_token_v3(params, nlp); in log_bk_params_v3()
806 log_lbr_bk_v3(params, nlp); in log_bk_params_v3()
808 log_level_v3(params, nlp); in log_bk_params_v3()
810 MOD_LOGV3(params, NDMP_LOG_ERROR, in log_bk_params_v3()
832 get_update_env_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp) in get_update_env_v3() argument
836 envp = MOD_GETENV(params, "UPDATE"); in get_update_env_v3()
866 get_hist_env_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp) in get_hist_env_v3() argument
870 envp = MOD_GETENV(params, "HIST"); in get_hist_env_v3()
883 params->mp_file_history_path_func = in get_hist_env_v3()
885 params->mp_file_history_dir_func = 0; in get_hist_env_v3()
886 params->mp_file_history_node_func = 0; in get_hist_env_v3()
907 get_exc_env_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp) in get_exc_env_v3() argument
911 envp = MOD_GETENV(params, "EXCLUDE"); in get_exc_env_v3()
939 get_inc_env_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp) in get_inc_env_v3() argument
943 envp = MOD_GETENV(params, "FILES"); in get_inc_env_v3()
969 get_direct_env_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp) in get_direct_env_v3() argument
979 if (params->mp_operation == NDMP_DATA_OP_RECOVER && !ndmp_dar_support) { in get_direct_env_v3()
982 MOD_LOGV3(params, NDMP_LOG_NORMAL, in get_direct_env_v3()
993 if (params->mp_operation == NDMP_DATA_OP_BACKUP) { in get_direct_env_v3()
998 envp = MOD_GETENV(params, "DIRECT"); in get_direct_env_v3()
1017 if (params->mp_operation == NDMP_DATA_OP_BACKUP) in get_direct_env_v3()
1018 MOD_LOGV3(params, NDMP_LOG_NORMAL, in get_direct_env_v3()
1021 MOD_LOGV3(params, NDMP_LOG_NORMAL, in get_direct_env_v3()
1024 if (params->mp_operation == NDMP_DATA_OP_BACKUP) in get_direct_env_v3()
1025 MOD_LOGV3(params, NDMP_LOG_NORMAL, in get_direct_env_v3()
1028 MOD_LOGV3(params, NDMP_LOG_NORMAL, in get_direct_env_v3()
1060 get_date_token_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp, in get_date_token_v3() argument
1069 if (!params || !nlp || !basedate || !*basedate) in get_date_token_v3()
1072 if (MOD_GETENV(params, "LEVEL")) { in get_date_token_v3()
1073 MOD_LOGV3(params, NDMP_LOG_WARNING, in get_date_token_v3()
1076 MOD_LOGCONTV3(params, NDMP_LOG_WARNING, in get_date_token_v3()
1082 MOD_LOGV3(params, NDMP_LOG_ERROR, in get_date_token_v3()
1095 MOD_LOGV3(params, NDMP_LOG_ERROR, in get_date_token_v3()
1098 MOD_LOGCONTV3(params, NDMP_LOG_ERROR, in get_date_token_v3()
1103 MOD_LOGV3(params, NDMP_LOG_ERROR, in get_date_token_v3()
1106 MOD_LOGCONTV3(params, NDMP_LOG_ERROR, in get_date_token_v3()
1116 MOD_LOGV3(params, NDMP_LOG_WARNING, in get_date_token_v3()
1119 MOD_LOGCONTV3(params, NDMP_LOG_WARNING, in get_date_token_v3()
1123 MOD_LOGV3(params, NDMP_LOG_WARNING, in get_date_token_v3()
1126 MOD_LOGCONTV3(params, NDMP_LOG_WARNING, in get_date_token_v3()
1136 nlp->nlp_dmpnm = MOD_GETENV(params, "DMP_NAME"); in get_date_token_v3()
1170 get_lbr_bk_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp, char *type) in get_lbr_bk_v3() argument
1172 if (!params || !nlp || !type || !*type) in get_lbr_bk_v3()
1178 nlp->nlp_dmpnm = MOD_GETENV(params, "DMP_NAME"); in get_lbr_bk_v3()
1205 get_backup_level_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp) in get_backup_level_v3() argument
1224 envp = MOD_GETENV(params, "BASE_DATE"); in get_backup_level_v3()
1226 return (get_date_token_v3(params, nlp, envp)); in get_backup_level_v3()
1229 envp = MOD_GETENV(params, "LEVEL"); in get_backup_level_v3()
1246 MOD_LOGV3(params, NDMP_LOG_ERROR, in get_backup_level_v3()
1252 return (get_lbr_bk_v3(params, nlp, envp)); in get_backup_level_v3()
1255 MOD_LOGV3(params, NDMP_LOG_ERROR, in get_backup_level_v3()
1272 MOD_LOGV3(params, NDMP_LOG_ERROR, in get_backup_level_v3()
1277 get_update_env_v3(params, nlp); in get_backup_level_v3()
1301 save_date_token_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp) in save_date_token_v3() argument
1306 if (!params || !nlp) in save_date_token_v3()
1315 if (MOD_SETENV(params, "DUMP_DATE", val) != 0) { in save_date_token_v3()
1316 MOD_LOGV3(params, NDMP_LOG_ERROR, in save_date_token_v3()
1322 MOD_LOGV3(params, NDMP_LOG_ERROR, in save_date_token_v3()
1343 save_lbr_bk_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp) in save_lbr_bk_v3() argument
1345 if (!params || !nlp) in save_lbr_bk_v3()
1352 MOD_LOGV3(params, NDMP_LOG_ERROR, in save_lbr_bk_v3()
1373 save_level_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp) in save_level_v3() argument
1375 if (!params || !nlp) in save_level_v3()
1382 MOD_LOGV3(params, NDMP_LOG_ERROR, "Logging backup date.\n"); in save_level_v3()
1401 save_backup_date_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp) in save_backup_date_v3() argument
1403 if (!params || !nlp) in save_backup_date_v3()
1407 save_date_token_v3(params, nlp); in save_backup_date_v3()
1409 save_lbr_bk_v3(params, nlp); in save_backup_date_v3()
1411 save_level_v3(params, nlp); in save_backup_date_v3()
1413 MOD_LOGV3(params, NDMP_LOG_ERROR, in save_backup_date_v3()
2366 tar_backup_v3(ndmpd_session_t *session, ndmpd_module_params_t *params, in tar_backup_v3() argument
2425 nctx.nc_params = params; in tar_backup_v3()
2453 if ((err = ndmp_tar_writer(session, params, cmds)) != 0) in tar_backup_v3()
2465 MOD_LOGV3(params, NDMP_LOG_NORMAL, info); in tar_backup_v3()
2554 get_rs_path_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp) in get_rs_path_v3() argument
2566 ep = (mem_ndmp_name_v3_t *)MOD_GETNAME(params, i); in get_rs_path_v3()
2589 MOD_LOGV3(params, NDMP_LOG_ERROR, in get_rs_path_v3()
2593 MOD_LOGV3(params, NDMP_LOG_ERROR, in get_rs_path_v3()
2635 fix_nlist_v3(ndmpd_session_t *session, ndmpd_module_params_t *params, in fix_nlist_v3() argument
2651 MOD_LOGV3(params, NDMP_LOG_ERROR, "Insufficient memory.\n"); in fix_nlist_v3()
2661 ep = (mem_ndmp_name_v3_t *)MOD_GETNAME(params, i); in fix_nlist_v3()
2686 MOD_LOGV3(params, NDMP_LOG_ERROR, in fix_nlist_v3()
2693 MOD_LOGV3(params, NDMP_LOG_ERROR, in fix_nlist_v3()
2735 MOD_LOGV3(params, NDMP_LOG_ERROR, in fix_nlist_v3()
2741 MOD_LOGV3(params, NDMP_LOG_ERROR, in fix_nlist_v3()
2755 MOD_LOGV3(params, NDMP_LOG_ERROR, in fix_nlist_v3()
2762 MOD_LOGV3(params, NDMP_LOG_ERROR, in fix_nlist_v3()
2793 allvalidfh(ndmpd_session_t *session, ndmpd_module_params_t *params) in allvalidfh() argument
2802 ep = (mem_ndmp_name_v3_t *)MOD_GETNAME(params, i); in allvalidfh()
2831 log_rs_params_v3(ndmpd_session_t *session, ndmpd_module_params_t *params, in log_rs_params_v3() argument
2834 MOD_LOGV3(params, NDMP_LOG_NORMAL, "Restoring to \"%s\".\n", in log_rs_params_v3()
2838 MOD_LOGV3(params, NDMP_LOG_NORMAL, "Tape server: local.\n"); in log_rs_params_v3()
2839 MOD_LOGV3(params, NDMP_LOG_NORMAL, in log_rs_params_v3()
2843 MOD_LOGV3(params, NDMP_LOG_NORMAL, in log_rs_params_v3()
2848 MOD_LOGV3(params, NDMP_LOG_ERROR, in log_rs_params_v3()
2852 MOD_LOGV3(params, NDMP_LOG_NORMAL, in log_rs_params_v3()
2864 send_unrecovered_list_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp) in send_unrecovered_list_v3() argument
2869 if (!params) { in send_unrecovered_list_v3()
2883 (void) ndmp_send_recovery_stat_v3(params, nlp, in send_unrecovered_list_v3()
2891 rv = ndmp_send_recovery_stat_v3(params, nlp, i, ENOENT); in send_unrecovered_list_v3()
3073 ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp, char *jname) in ndmpd_dar_tar_end_v3() argument
3081 (void) send_unrecovered_list_v3(params, nlp); in ndmpd_dar_tar_end_v3()
3145 ndmpd_dar_tar_v3(ndmpd_session_t *session, ndmpd_module_params_t *params, in ndmpd_dar_tar_v3() argument
3169 sels = setupsels(session, params, nlp, dar_index); in ndmpd_dar_tar_v3()
3186 arg.tr_mod_params = params; in ndmpd_dar_tar_v3()
3206 nctx.nc_params = params; in ndmpd_dar_tar_v3()
3208 ep = (mem_ndmp_name_v3_t *)MOD_GETNAME(params, in ndmpd_dar_tar_v3()
3236 MOD_LOGV3(params, NDMP_LOG_ERROR, in ndmpd_dar_tar_v3()
3299 ndmpd_module_params_t *params, u_longlong_t fh_info, u_longlong_t len) in ndmpd_dar_locate_window_v3() argument
3305 ret = (*params->mp_seek_func)(session, fh_info, len); in ndmpd_dar_locate_window_v3()
3346 ndmpd_rs_dar_tar_v3(ndmpd_session_t *session, ndmpd_module_params_t *params, in ndmpd_rs_dar_tar_v3() argument
3370 ep = (mem_ndmp_name_v3_t *)MOD_GETNAME(params, i); in ndmpd_rs_dar_tar_v3()
3385 ret = ndmpd_dar_locate_window_v3(session, params, in ndmpd_rs_dar_tar_v3()
3394 if ((ret = ndmpd_dar_tar_v3(session, params, nlp, jname, i+1)) in ndmpd_rs_dar_tar_v3()
3405 (void) ndmpd_dar_tar_end_v3(session, params, nlp, jname); in ndmpd_rs_dar_tar_v3()
3416 ndmp_plugin_pre_restore(ndmp_context_t *ctxp, ndmpd_module_params_t *params, in ndmp_plugin_pre_restore() argument
3424 if (!(ep = (mem_ndmp_name_v3_t *)MOD_GETNAME(params, i))) in ndmp_plugin_pre_restore()
3476 ndmpd_module_params_t *params; in ndmp_log_dma() local
3479 (params = (ndmpd_module_params_t *)nctx->nc_params) == NULL) in ndmp_log_dma()
3486 MOD_LOGV3(params, (ndmp_log_type)lt, "%s", buf); in ndmp_log_dma()
3506 ndmpd_rs_sar_tar_v3(ndmpd_session_t *session, ndmpd_module_params_t *params, in ndmpd_rs_sar_tar_v3() argument
3526 sels = setupsels(session, params, nlp, 0); in ndmpd_rs_sar_tar_v3()
3549 arg.tr_mod_params = params; in ndmpd_rs_sar_tar_v3()
3572 nctx.nc_params = params; in ndmpd_rs_sar_tar_v3()
3574 if ((err = ndmp_plugin_pre_restore(&nctx, params, in ndmpd_rs_sar_tar_v3()
3601 MOD_LOGV3(params, NDMP_LOG_ERROR, in ndmpd_rs_sar_tar_v3()
3612 (void) send_unrecovered_list_v3(params, nlp); in ndmpd_rs_sar_tar_v3()
3627 (void) send_unrecovered_list_v3(params, nlp); /* nothing restored. */ in ndmpd_rs_sar_tar_v3()
3680 ndmpd_module_params_t *params) in ndmp_backup_get_params_v3() argument
3684 if (!session || !params) in ndmp_backup_get_params_v3()
3689 MOD_LOGV3(params, NDMP_LOG_ERROR, in ndmp_backup_get_params_v3()
3693 if (!(nlp->nlp_backup_path = get_backup_path_v3(params)) || in ndmp_backup_get_params_v3()
3694 !is_valid_backup_dir_v3(params, nlp->nlp_backup_path)) in ndmp_backup_get_params_v3()
3726 get_hist_env_v3(params, nlp); in ndmp_backup_get_params_v3()
3727 get_exc_env_v3(params, nlp); in ndmp_backup_get_params_v3()
3728 get_inc_env_v3(params, nlp); in ndmp_backup_get_params_v3()
3729 get_direct_env_v3(params, nlp); in ndmp_backup_get_params_v3()
3730 return (get_backup_level_v3(params, nlp)); in ndmp_backup_get_params_v3()
3752 ndmpd_module_params_t *params = arg; in ndmpd_tar_backup_starter_v3() local
3760 session = (ndmpd_session_t *)(params->mp_daemon_cookie); in ndmpd_tar_backup_starter_v3()
3761 *(params->mp_module_cookie) = nlp = ndmp_get_nlp(session); in ndmpd_tar_backup_starter_v3()
3768 MOD_LOGV3(params, NDMP_LOG_ERROR, in ndmpd_tar_backup_starter_v3()
3791 log_bk_params_v3(session, params, nlp); in ndmpd_tar_backup_starter_v3()
3792 err = tar_backup_v3(session, params, nlp, jname); in ndmpd_tar_backup_starter_v3()
3803 save_backup_date_v3(params, nlp); in ndmpd_tar_backup_starter_v3()
3805 MOD_DONE(params, err); in ndmpd_tar_backup_starter_v3()
3865 ndmpd_module_params_t *params) in ndmp_restore_get_params_v3() argument
3873 } else if (!(nlp->nlp_backup_path = get_backup_path_v3(params))) in ndmp_restore_get_params_v3()
3878 } else if (get_rs_path_v3(params, nlp) != NDMP_NO_ERR) { in ndmp_restore_get_params_v3()
3880 } else if ((rv = fix_nlist_v3(session, params, nlp)) != NDMP_NO_ERR) { in ndmp_restore_get_params_v3()
3884 get_direct_env_v3(params, nlp); in ndmp_restore_get_params_v3()
3897 if (allvalidfh(session, params)) { in ndmp_restore_get_params_v3()
3900 MOD_LOGV3(params, NDMP_LOG_WARNING, in ndmp_restore_get_params_v3()
3907 log_rs_params_v3(session, params, nlp); in ndmp_restore_get_params_v3()
3930 ndmpd_module_params_t *params = arg; in ndmpd_tar_restore_starter_v3() local
3936 session = (ndmpd_session_t *)(params->mp_daemon_cookie); in ndmpd_tar_restore_starter_v3()
3937 *(params->mp_module_cookie) = nlp = ndmp_get_nlp(session); in ndmpd_tar_restore_starter_v3()
3941 err = ndmpd_rs_dar_tar_v3(session, params, nlp); in ndmpd_tar_restore_starter_v3()
3943 err = ndmpd_rs_sar_tar_v3(session, params, nlp); in ndmpd_tar_restore_starter_v3()
3945 MOD_DONE(params, err); in ndmpd_tar_restore_starter_v3()