Lines Matching refs:ftp

86 	(*(ftp)->ft_callbk)((ftp)->ft_arg, pp, ep)
144 static int traverse_level_nondir(struct fs_traverse *ftp,
327 traverse_post(struct fs_traverse *ftp)
340 if (!ftp || !ftp->ft_path || !*ftp->ft_path || !ftp->ft_callbk) {
347 if (!ftp->ft_logfp) {
348 ftp->ft_logfp = (ft_log_t)syslog;
349 NDMP_LOG(LOG_DEBUG, "Log to system log \"%s\"", ftp->ft_path);
353 if (!ftp->ft_lpath) {
355 "report the same paths: \"%s\"", ftp->ft_path);
356 ftp->ft_lpath = ftp->ft_path;
359 pl = strlen(ftp->ft_lpath);
361 NDMP_LOG(LOG_DEBUG, "lpath too long \"%s\"", ftp->ft_path);
365 (void) strcpy(path, ftp->ft_lpath);
367 rv = fs_getstat(ftp->ft_lpath, &pfh, &pst);
371 "Error %d on fs_getstat(%s)", rv, ftp->ft_path);
376 pn.tn_path = ftp->ft_lpath;
383 if (VERBOSE(ftp))
416 if (VERBOSE(ftp))
434 if (STOP_ONERR(ftp))
443 if (VERBOSE(ftp))
455 if (VERBOSE(ftp))
464 if (STOP_ONLONG(ftp))
528 if (VERBOSE(ftp))
564 if (VERBOSE(ftp))
579 if (VERBOSE(ftp))
596 * For the 'ftp->ft_path' directory itself.
607 if (VERBOSE(ftp))
639 traverse_level_nondir(struct fs_traverse *ftp,
676 if (STOP_ONERR(ftp))
698 if (VERBOSE(ftp))
707 if (STOP_ONLONG(ftp))
745 traverse_level(struct fs_traverse *ftp)
760 if (!ftp || !ftp->ft_path || !*ftp->ft_path || !ftp->ft_callbk) {
766 if (!ftp->ft_logfp) {
767 ftp->ft_logfp = (ft_log_t)syslog;
768 NDMP_LOG(LOG_DEBUG, "Log to system log \"%s\"", ftp->ft_path);
770 if (!ftp->ft_lpath) {
772 "report the same paths \"%s\"", ftp->ft_path);
773 ftp->ft_lpath = ftp->ft_path;
776 pl = strlen(ftp->ft_lpath);
778 NDMP_LOG(LOG_DEBUG, "lpath too long \"%s\"", ftp->ft_path);
782 (void) strcpy(path, ftp->ft_lpath);
784 rv = fs_getstat(ftp->ft_lpath, &pfh, &pst);
787 "Error %d on fs_getstat(%s)", rv, ftp->ft_path);
795 pn.tn_path = ftp->ft_lpath;
799 if (VERBOSE(ftp))
858 if (VERBOSE(ftp))
861 rv = traverse_level_nondir(ftp, tsp, &pn, &darg);
901 if (STOP_ONERR(ftp))
918 if (VERBOSE(ftp))
932 if (STOP_ONLONG(ftp))
1016 if (VERBOSE(ftp))