Lines Matching defs:nlp

354  *   nlp (input) - pointer to the nlp structure
364 ndmp_lbr_params_t *nlp, int index)
511 ndmp_lbr_params_t *nlp;
519 } else if ((nlp = rnp->rn_nlp) == 0) {
521 } else if (!nlp->nlp_params) {
522 NDMP_LOG(LOG_DEBUG, "nlp->nlp_params is NULL");
525 if (idx < 0 || idx >= (int)nlp->nlp_nfiles) {
528 idx, nlp->nlp_nfiles);
530 nlp->nlp_params, idx))) {
549 if (!tlm_cat_path(buf, nlp->nlp_restore_path, path)) {
551 nlp->nlp_restore_path, path);
694 * nlp (input) - pointer to the nlp structure
700 log_date_token_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp)
703 nlp->nlp_tokseq);
706 cctime(&nlp->nlp_tokdate));
708 if (nlp->nlp_dmpnm) {
710 "Backup date log file name: \"%s\".\n", nlp->nlp_dmpnm);
724 * nlp (input) - pointer to the nlp structure
730 log_lbr_bk_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp)
733 "Date of this level '%c': %s.\n", nlp->nlp_clevel,
734 cctime(&nlp->nlp_cdate));
736 if (nlp->nlp_dmpnm) {
738 "Backup date log file name: \"%s\".\n", nlp->nlp_dmpnm);
752 * nlp (input) - pointer to the nlp structure
758 log_level_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp)
761 "Date of the last level '%u': %s.\n", nlp->nlp_llevel,
762 cctime(&nlp->nlp_ldate));
765 "Date of this level '%u': %s.\n", nlp->nlp_clevel,
766 cctime(&nlp->nlp_cdate));
769 NDMP_TORF(NLP_ISSET(nlp, NLPF_UPDATE)));
783 * nlp (input) - pointer to the nlp structure
790 ndmp_lbr_params_t *nlp)
793 nlp->nlp_backup_path);
801 NDMP_YORN(NLP_ISSET(nlp, NLPF_FH)));
803 if (NLP_ISSET(nlp, NLPF_TOKENBK))
804 log_date_token_v3(params, nlp);
805 else if (NLP_ISSET(nlp, NLPF_LBRBK))
806 log_lbr_bk_v3(params, nlp);
807 else if (NLP_ISSET(nlp, NLPF_LEVELBK))
808 log_level_v3(params, nlp);
812 nlp->nlp_backup_path);
822 * nlp structure, otherwise the flag is cleared.
826 * nlp (input) - pointer to the nlp structure
832 get_update_env_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp)
838 NLP_SET(nlp, NLPF_UPDATE);
844 NLP_SET(nlp, NLPF_UPDATE);
846 NLP_UNSET(nlp, NLPF_UPDATE);
855 * flag is set in the flags field of the nlp structure, otherwise
860 * nlp (input) - pointer to the nlp structure
866 get_hist_env_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp)
873 NLP_UNSET(nlp, NLPF_FH);
877 NLP_SET(nlp, NLPF_FH);
879 NLP_UNSET(nlp, NLPF_FH);
901 * nlp (input) - pointer to the nlp structure
907 get_exc_env_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp)
914 nlp->nlp_exl = NULL;
917 nlp->nlp_exl = split_env(envp, ',');
918 prl(nlp->nlp_exl);
933 * nlp (input) - pointer to the nlp structure
939 get_inc_env_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp)
946 nlp->nlp_inc = NULL;
949 nlp->nlp_inc = split_env(envp, ' ');
950 prl(nlp->nlp_inc);
963 * nlp (input) - pointer to the nlp structure
969 get_direct_env_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp)
981 NLP_UNSET(nlp, NLPF_DIRECT);
995 NLP_SET(nlp, NLPF_DIRECT);
1001 NLP_UNSET(nlp, NLPF_DIRECT);
1005 NLP_SET(nlp, NLPF_DIRECT);
1009 NLP_UNSET(nlp, NLPF_DIRECT);
1016 if (NLP_ISSET(nlp, NLPF_DIRECT)) {
1039 * token sequence in the nlp structure fields. The sequence
1045 * The NLPF_TOKENBK flag is set in the nlp flags field to
1050 * nlp (input) - pointer to the nlp structure
1060 get_date_token_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp,
1069 if (!params || !nlp || !basedate || !*basedate)
1136 nlp->nlp_dmpnm = MOD_GETENV(params, "DMP_NAME");
1137 NLP_SET(nlp, NLPF_TOKENBK);
1138 NLP_UNSET(nlp, NLPF_LEVELBK);
1139 NLP_UNSET(nlp, NLPF_LBRBK);
1140 nlp->nlp_tokseq = seq;
1141 nlp->nlp_tokdate = tstamp;
1155 * Sets the level fields of the nlp structures for
1157 * nlp flags is also set to show the backup type.
1161 * nlp (input) - pointer to the nlp structure
1170 get_lbr_bk_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp, char *type)
1172 if (!params || !nlp || !type || !*type)
1175 NLP_SET(nlp, NLPF_LBRBK);
1176 NLP_UNSET(nlp, NLPF_TOKENBK);
1177 NLP_UNSET(nlp, NLPF_LEVELBK);
1178 nlp->nlp_dmpnm = MOD_GETENV(params, "DMP_NAME");
1179 nlp->nlp_llevel = toupper(*type);
1180 nlp->nlp_ldate = (time_t)0;
1181 nlp->nlp_clevel = nlp->nlp_llevel;
1182 (void) time(&nlp->nlp_cdate);
1198 * nlp (input) - pointer to the nlp structure
1205 get_backup_level_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp)
1226 return (get_date_token_v3(params, nlp, envp));
1232 NLP_SET(nlp, NLPF_LEVELBK);
1233 NLP_UNSET(nlp, NLPF_LBRBK);
1234 NLP_UNSET(nlp, NLPF_TOKENBK);
1235 nlp->nlp_llevel = 0;
1236 nlp->nlp_ldate = 0;
1237 nlp->nlp_clevel = 0;
1252 return (get_lbr_bk_v3(params, nlp, envp));
1260 NLP_SET(nlp, NLPF_LEVELBK);
1261 NLP_UNSET(nlp, NLPF_LBRBK);
1262 NLP_UNSET(nlp, NLPF_TOKENBK);
1263 nlp->nlp_llevel = *envp - '0';
1264 nlp->nlp_ldate = 0;
1265 nlp->nlp_clevel = nlp->nlp_llevel;
1270 if (ndmpd_get_dumptime(nlp->nlp_backup_path, &nlp->nlp_llevel,
1271 &nlp->nlp_ldate) < 0) {
1274 nlp->nlp_backup_path, *envp);
1277 get_update_env_v3(params, nlp);
1295 * nlp (input) - pointer to the nlp structure
1301 save_date_token_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp)
1306 if (!params || !nlp)
1309 nlp->nlp_tokseq++;
1310 tok = ((u_longlong_t)nlp->nlp_tokseq << 32) | nlp->nlp_cdate;
1318 } else if (!nlp->nlp_dmpnm) {
1320 } else if (ndmpd_append_dumptime(nlp->nlp_dmpnm, nlp->nlp_backup_path,
1321 nlp->nlp_tokseq, nlp->nlp_tokdate) < 0) {
1324 nlp->nlp_backup_path, nlp->nlp_dmpnm);
1337 * nlp (input) - pointer to the nlp structure
1343 save_lbr_bk_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp)
1345 if (!params || !nlp)
1348 if (!nlp->nlp_dmpnm) {
1350 } else if (ndmpd_append_dumptime(nlp->nlp_dmpnm, nlp->nlp_backup_path,
1351 nlp->nlp_clevel, nlp->nlp_cdate) < 0) {
1354 nlp->nlp_backup_path, nlp->nlp_dmpnm);
1367 * nlp (input) - pointer to the nlp structure
1373 save_level_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp)
1375 if (!params || !nlp)
1378 if (!NLP_SHOULD_UPDATE(nlp)) {
1380 } else if (ndmpd_put_dumptime(nlp->nlp_backup_path, nlp->nlp_clevel,
1381 nlp->nlp_cdate) < 0) {
1395 * nlp (input) - pointer to the nlp structure
1401 save_backup_date_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp)
1403 if (!params || !nlp)
1406 if (NLP_ISSET(nlp, NLPF_TOKENBK))
1407 save_date_token_v3(params, nlp);
1408 else if (NLP_ISSET(nlp, NLPF_LBRBK))
1409 save_lbr_bk_v3(params, nlp);
1410 else if (NLP_ISSET(nlp, NLPF_LEVELBK))
1411 save_level_v3(params, nlp);
1415 nlp->nlp_backup_path);
1442 ndmp_lbr_params_t *nlp;
1445 nlp = ndmp_get_nlp(session);
1446 if (!nlp) {
1447 NDMP_LOG(LOG_DEBUG, "nlp == NULL");
1451 nlp->nlp_jstat = tlm_new_job_stats(jname);
1452 if (!nlp->nlp_jstat) {
1457 cmds = &nlp->nlp_cmds;
1481 nlp->nlp_logcallbacks = lbrlog_callbacks_init(session,
1483 if (!nlp->nlp_logcallbacks) {
1488 nlp->nlp_jstat->js_callbacks = (void *)(nlp->nlp_logcallbacks);
1489 nlp->nlp_restored = NULL;
1516 ndmp_lbr_params_t *nlp;
1519 nlp = ndmp_get_nlp(session);
1520 if (!nlp) {
1521 NDMP_LOG(LOG_DEBUG, "nlp == NULL");
1526 nlp->nlp_lastidx = -1;
1528 nlp->nlp_jstat = tlm_new_job_stats(jname);
1529 if (!nlp->nlp_jstat) {
1534 cmds = &nlp->nlp_cmds;
1544 nlp->nlp_logcallbacks = lbrlog_callbacks_init(session,
1546 if (!nlp->nlp_logcallbacks) {
1551 nlp->nlp_jstat->js_callbacks = (void *)(nlp->nlp_logcallbacks);
1553 nlp->nlp_rsbm = bm_alloc(nlp->nlp_nfiles, 0);
1554 if (nlp->nlp_rsbm < 0) {
1556 lbrlog_callbacks_done(nlp->nlp_logcallbacks);
1584 ndmp_lbr_params_t *nlp;
1587 nlp = ndmp_get_nlp(session);
1588 if (!nlp) {
1589 NDMP_LOG(LOG_DEBUG, "nlp == NULL");
1592 cmds = &nlp->nlp_cmds;
1598 if (nlp->nlp_logcallbacks) {
1599 lbrlog_callbacks_done(nlp->nlp_logcallbacks);
1600 nlp->nlp_logcallbacks = NULL;
1613 if (nlp->nlp_bkmap >= 0) {
1614 (void) dbm_free(nlp->nlp_bkmap);
1615 nlp->nlp_bkmap = -1;
1619 if (nlp->nlp_rsbm < 0) {
1620 NDMP_LOG(LOG_DEBUG, "nlp_rsbm < 0 %d", nlp->nlp_rsbm);
1622 (void) bm_free(nlp->nlp_rsbm);
1623 nlp->nlp_rsbm = -1;
1789 * - If the nlp pointer of the bpp is valid.
1816 NDMP_LOG(LOG_DEBUG, "Lost nlp");
1920 ischngd(struct stat64 *stp, time_t t, ndmp_lbr_params_t *nlp)
1927 } else if (!nlp) {
1929 NDMP_LOG(LOG_DEBUG, "nlp is NULL");
1941 dbm_getone(nlp->nlp_bkmap, (u_longlong_t)stp->st_ino) &&
1942 ((NLP_ISDUMP(nlp) && ndmp_dump_path_node) ||
1943 (NLP_ISTAR(nlp) && ndmp_tar_path_node))) {
1966 if (NLP_IGNCTIME(nlp)) {
1996 int iscreated(ndmp_lbr_params_t *nlp, char *name, tlm_acls_t *tacl,
2003 NDMP_LOG(LOG_DEBUG, "flags %x", nlp->nlp_flags);
2004 if (NLP_INCLMTIME(nlp) == FALSE)
2218 * nlp (input) - pointer to the nlp structure
2235 ndmp_lbr_params_t *nlp;
2242 nlp = argp->br_nlp;
2253 bp.bp_session = nlp->nlp_session;
2254 bp.bp_nlp = nlp;
2274 bp.bp_unchkpnm = nlp->nlp_backup_path;
2275 if (!NLP_ISCHKPNTED(nlp)) {
2282 (void) tlm_build_snapshot_name(nlp->nlp_backup_path,
2283 bp.bp_chkpnm, nlp->nlp_jstat->js_job_name);
2286 bp.bp_chkpnm = nlp->nlp_backup_path;
2291 ft.ft_path = nlp->nlp_backup_path;
2295 if (NLP_ISSET(nlp, NLPF_TOKENBK) || NLP_ISSET(nlp, NLPF_LEVELBK)) {
2298 } else if (NLP_ISSET(nlp, NLPF_LBRBK)) {
2306 MOD_LOGV3(nlp->nlp_params, NDMP_LOG_ERROR,
2315 nlp->nlp_session->ns_data.dd_module.dm_stats.ms_bytes_processed = n;
2325 nlp->nlp_session->
2328 MOD_LOGV3(nlp->nlp_params, NDMP_LOG_ERROR,
2330 ndmpd_data_error(nlp->nlp_session,
2335 if (!NLP_ISCHKPNTED(nlp))
2358 * nlp (input) - pointer to the nlp structure
2367 ndmp_lbr_params_t *nlp, char *jname)
2377 if (ndmp_get_bk_dir_ino(nlp))
2388 nlp->nlp_bkmap = -1;
2392 if (ndmpd_mark_inodes_v3(session, nlp) != 0) {
2393 if (nlp->nlp_bkmap != -1) {
2394 (void) dbm_free(nlp->nlp_bkmap);
2395 nlp->nlp_bkmap = -1;
2401 nlp->nlp_jstat->js_start_ltime = time(NULL);
2402 nlp->nlp_jstat->js_start_time = nlp->nlp_jstat->js_start_ltime;
2403 nlp->nlp_jstat->js_chkpnt_time = nlp->nlp_cdate;
2405 cmds = &nlp->nlp_cmds;
2416 "Backing up \"%s\" started.", nlp->nlp_backup_path);
2428 nlp->nlp_backup_path)) != 0) {
2436 arg.br_nlp = nlp;
2456 nlp->nlp_jstat->js_stop_time = time(NULL);
2460 nlp->nlp_backup_path,
2463 nlp->nlp_jstat->js_stop_time -
2464 nlp->nlp_jstat->js_start_ltime);
2477 nlp->nlp_backup_path,
2481 nlp->nlp_backup_path);
2487 nlp->nlp_backup_path,
2491 "Backing up \"%s\" aborted.", nlp->nlp_backup_path);
2554 get_rs_path_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp)
2565 for (i = 0, nm_cnt = 0; i < (int)nlp->nlp_nfiles; i++) {
2577 nlp->nlp_restore_path = mdest_buf;
2584 dp = nlp->nlp_backup_path;
2598 (void) strlcat(nlp->nlp_restore_path, dp,
2611 (void) strlcat(nlp->nlp_restore_path, ", ",
2636 ndmp_lbr_params_t *nlp)
2655 bvexists = fs_volexist(nlp->nlp_backup_path);
2656 iswrbk = voliswr(nlp->nlp_backup_path);
2678 dp = nlp->nlp_backup_path;
2750 bp = joinpath(buf, nlp->nlp_backup_path, ep->nm3_opath);
2757 nlp->nlp_backup_path, ep->nm3_opath);
2832 ndmp_lbr_params_t *nlp)
2835 (nlp->nlp_restore_path) ? nlp->nlp_restore_path : "NULL");
2851 if (NLP_ISSET(nlp, NLPF_DIRECT))
2864 send_unrecovered_list_v3(ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp)
2873 if (!nlp) {
2874 NDMP_LOG(LOG_DEBUG, "nlp == NULL");
2878 if (nlp->nlp_lastidx != -1) {
2879 if (!bm_getone(nlp->nlp_rsbm, (u_longlong_t)nlp->nlp_lastidx))
2883 (void) ndmp_send_recovery_stat_v3(params, nlp,
2884 nlp->nlp_lastidx, err);
2885 nlp->nlp_lastidx = -1;
2889 for (i = 0; i < (int)nlp->nlp_nfiles; i++) {
2890 if (!bm_getone(nlp->nlp_rsbm, (u_longlong_t)i)) {
2891 rv = ndmp_send_recovery_stat_v3(params, nlp, i, ENOENT);
2921 ndmp_lbr_params_t *nlp;
2924 nlp = ndmp_get_nlp(session);
2925 if (!nlp) {
2926 NDMP_LOG(LOG_DEBUG, "nlp == NULL");
2930 cmds = &nlp->nlp_cmds;
2961 ndmp_lbr_params_t *nlp;
2964 nlp = ndmp_get_nlp(session);
2965 if (!nlp) {
2966 NDMP_LOG(LOG_DEBUG, "nlp == NULL");
2969 cmds = &nlp->nlp_cmds;
2995 * nlp (input) - pointer to the nlp structure
3002 ndmp_lbr_params_t *nlp)
3013 if (!nlp) {
3015 NDMP_LOG(LOG_DEBUG, "nlp == NULL");
3019 nlp->nlp_jstat = tlm_new_job_stats(jname);
3020 if (!nlp->nlp_jstat) {
3026 nlp->nlp_jstat->js_start_ltime = time(NULL);
3027 nlp->nlp_jstat->js_start_time = nlp->nlp_jstat->js_start_ltime;
3029 nlp->nlp_logcallbacks = lbrlog_callbacks_init(session,
3031 if (!nlp->nlp_logcallbacks) {
3036 nlp->nlp_jstat->js_callbacks = (void *)(nlp->nlp_logcallbacks);
3038 nlp->nlp_rsbm = bm_alloc(nlp->nlp_nfiles, 0);
3039 if (nlp->nlp_rsbm < 0) {
3041 lbrlog_callbacks_done(nlp->nlp_logcallbacks);
3048 nlp->nlp_lastidx = -1;
3065 * nlp (input) - pointer to the nlp structure
3073 ndmpd_module_params_t *params, ndmp_lbr_params_t *nlp, char *jname)
3078 NDMP_LOG(LOG_DEBUG, "lastidx %d", nlp->nlp_lastidx);
3081 (void) send_unrecovered_list_v3(params, nlp);
3083 if (nlp->nlp_jstat) {
3084 nlp->nlp_bytes_total =
3085 (u_longlong_t)nlp->nlp_jstat->js_bytes_total;
3087 nlp->nlp_jstat = NULL;
3092 if (nlp->nlp_logcallbacks) {
3093 lbrlog_callbacks_done(nlp->nlp_logcallbacks);
3094 nlp->nlp_logcallbacks = NULL;
3101 (nlp->nlp_restore_path) ? nlp->nlp_restore_path : "NULL");
3105 (nlp->nlp_restore_path) ? nlp->nlp_restore_path :
3110 if (nlp->nlp_rsbm < 0) {
3111 NDMP_LOG(LOG_DEBUG, "nlp_rsbm < 0 %d", nlp->nlp_rsbm);
3113 (void) bm_free(nlp->nlp_rsbm);
3114 nlp->nlp_rsbm = -1;
3136 * nlp (input) - pointer to the nlp structure
3146 ndmp_lbr_params_t *nlp, char *jname, int dar_index)
3169 sels = setupsels(session, params, nlp, dar_index);
3176 rn.rn_nlp = nlp;
3180 cmds = &nlp->nlp_cmds;
3227 nlp->nlp_jstat, &rn, 1, 1, sels, &excl, flags,
3228 dar_index, nlp->nlp_backup_path,
3339 * nlp (input) - pointer to the nlp structure
3347 ndmp_lbr_params_t *nlp)
3356 jname = ndmpd_dar_tar_init_v3(session, nlp);
3394 if ((ret = ndmpd_dar_tar_v3(session, params, nlp, jname, i+1))
3405 (void) ndmpd_dar_tar_end_v3(session, params, nlp, jname);
3499 * nlp (input) - pointer to the nlp structure
3507 ndmp_lbr_params_t *nlp)
3526 sels = setupsels(session, params, nlp, 0);
3533 rn.rn_nlp = nlp;
3536 nlp->nlp_jstat->js_start_ltime = time(NULL);
3537 nlp->nlp_jstat->js_start_time = nlp->nlp_jstat->js_start_ltime;
3540 cmds = &nlp->nlp_cmds;
3546 (nlp->nlp_restore_path) ? nlp->nlp_restore_path : "NULL");
3575 nlp->nlp_nfiles))
3593 nlp->nlp_jstat, &rn, 1, 1, sels, &excl, flags, 0,
3594 nlp->nlp_backup_path, session->hardlink_q);
3609 nlp->nlp_jstat->js_stop_time = time(NULL);
3612 (void) send_unrecovered_list_v3(params, nlp);
3627 (void) send_unrecovered_list_v3(params, nlp); /* nothing restored. */
3630 (nlp->nlp_restore_path) ? nlp->nlp_restore_path : "NULL");
3633 nlp->nlp_restore_path,
3639 (nlp->nlp_restore_path) ? nlp->nlp_restore_path : "NULL",
3642 nlp->nlp_restore_path,
3682 ndmp_lbr_params_t *nlp;
3687 nlp = ndmp_get_nlp(session);
3688 if (!nlp) {
3690 "Internal error: NULL nlp.\n");
3693 if (!(nlp->nlp_backup_path = get_backup_path_v3(params)) ||
3694 !is_valid_backup_dir_v3(params, nlp->nlp_backup_path))
3698 nlp->nlp_backup_path = get_absolute_path(nlp->nlp_backup_path);
3699 if (!nlp->nlp_backup_path)
3702 if (fs_is_chkpntvol(nlp->nlp_backup_path) ||
3703 fs_is_rdonly(nlp->nlp_backup_path) ||
3704 !fs_is_chkpnt_enabled(nlp->nlp_backup_path))
3705 NLP_SET(nlp, NLPF_CHKPNTED_PATH);
3707 NLP_UNSET(nlp, NLPF_CHKPNTED_PATH);
3712 NLP_SET(nlp, NLPF_IGNCTIME);
3714 NLP_UNSET(nlp, NLPF_IGNCTIME);
3719 NLP_SET(nlp, NLPF_INCLMTIME);
3721 NLP_UNSET(nlp, NLPF_INCLMTIME);
3724 NDMP_LOG(LOG_DEBUG, "flags %x", nlp->nlp_flags);
3726 get_hist_env_v3(params, nlp);
3727 get_exc_env_v3(params, nlp);
3728 get_inc_env_v3(params, nlp);
3729 get_direct_env_v3(params, nlp);
3730 return (get_backup_level_v3(params, nlp));
3755 ndmp_lbr_params_t *nlp;
3761 *(params->mp_module_cookie) = nlp = ndmp_get_nlp(session);
3766 if (!NLP_ISCHKPNTED(nlp) &&
3767 ndmp_create_snapshot(nlp->nlp_backup_path, jname) < 0) {
3770 nlp->nlp_backup_path);
3775 err, NDMP_YORN(NLP_ISCHKPNTED(nlp)));
3780 sarg.bs_path = nlp->nlp_backup_path;
3787 err = ndmp_get_cur_bk_time(nlp, &nlp->nlp_cdate, jname);
3791 log_bk_params_v3(session, params, nlp);
3792 err = tar_backup_v3(session, params, nlp, jname);
3796 if (!NLP_ISCHKPNTED(nlp))
3797 (void) ndmp_remove_snapshot(nlp->nlp_backup_path, jname);
3800 err, NDMP_YORN(NLP_SHOULD_UPDATE(nlp)));
3803 save_backup_date_v3(params, nlp);
3808 NDMP_FREE(nlp->nlp_params);
3809 NDMP_FREE(nlp->nlp_backup_path);
3824 * module_cookie (input) - pointer to the nlp structure
3832 ndmp_lbr_params_t *nlp;
3834 nlp = (ndmp_lbr_params_t *)module_cookie;
3835 if (nlp && nlp->nlp_session) {
3836 if (nlp->nlp_session->ns_data.dd_data_addr.addr_type ==
3838 nlp->nlp_session->ns_data.dd_sock != -1) {
3839 (void) close(nlp->nlp_session->ns_data.dd_sock);
3840 nlp->nlp_session->ns_data.dd_sock = -1;
3842 ndmp_stop_reader_thread(nlp->nlp_session);
3868 ndmp_lbr_params_t *nlp;
3870 if (!(nlp = ndmp_get_nlp(session))) {
3871 NDMP_LOG(LOG_DEBUG, "nlp is NULL");
3873 } else if (!(nlp->nlp_backup_path = get_backup_path_v3(params)))
3875 else if ((nlp->nlp_nfiles = session->ns_data.dd_nlist_len) == 0) {
3876 NDMP_LOG(LOG_DEBUG, "nfiles: %d", nlp->nlp_nfiles);
3878 } else if (get_rs_path_v3(params, nlp) != NDMP_NO_ERR) {
3880 } else if ((rv = fix_nlist_v3(session, params, nlp)) != NDMP_NO_ERR) {
3884 get_direct_env_v3(params, nlp);
3885 if (NLP_ISSET(nlp, NLPF_DIRECT)) {
3886 if (NLP_ISSET(nlp, NLPF_RECURSIVE)) {
3903 NLP_UNSET(nlp, NLPF_DIRECT);
3907 log_rs_params_v3(session, params, nlp);
3933 ndmp_lbr_params_t *nlp;
3937 *(params->mp_module_cookie) = nlp = ndmp_get_nlp(session);
3940 if (NLP_ISSET(nlp, NLPF_DIRECT))
3941 err = ndmpd_rs_dar_tar_v3(session, params, nlp);
3943 err = ndmpd_rs_sar_tar_v3(session, params, nlp);
3949 NDMP_FREE(nlp->nlp_params);
3961 * module_cookie (input) - pointer to nlp
3969 ndmp_lbr_params_t *nlp;
3971 nlp = (ndmp_lbr_params_t *)module_cookie;
3972 if (nlp != NULL && nlp->nlp_session != NULL) {
3973 if (nlp->nlp_session->ns_data.dd_mover.addr_type ==
3975 nlp->nlp_session->ns_data.dd_sock != -1) {
3976 (void) close(nlp->nlp_session->ns_data.dd_sock);
3977 nlp->nlp_session->ns_data.dd_sock = -1;
3979 ndmp_stop_writer_thread(nlp->nlp_session);