Lines Matching refs:src
232 trymount (const char *src, const char *dest) in trymount() argument
234 if (mount (src, dest, "", MS_BIND, NULL) < 0) in trymount()
235 FAIL_EXIT1 ("can't mount %s onto %s\n", src, dest); in trymount()
484 rsync_1 (path_buf * src, path_buf * dest, int and_delete, int force_copies) in rsync_1() argument
490 r_append ("/", src); in rsync_1()
494 printf ("sync %s to %s%s%s\n", src->buf, dest->buf, in rsync_1()
498 size_t staillen = src->len; in rsync_1()
502 dir = opendir (src->buf); in rsync_1()
510 src->len = staillen; in rsync_1()
511 r_append (de->d_name, src); in rsync_1()
518 if (lstat (src->buf, &s) != 0) in rsync_1()
519 FAIL_EXIT1 ("%s obtained by readdir, but stat failed.\n", src->buf); in rsync_1()
525 if (! force_copies && ! need_sync (src->buf, dest->buf, &s, &d)) in rsync_1()
528 rsync_1 (src, dest, and_delete, force_copies); in rsync_1()
556 copy_one_file (src->buf, dest->buf); in rsync_1()
563 rsync_1 (src, dest, and_delete, force_copies); in rsync_1()
571 lp = xreadlink (src->buf); in rsync_1()
583 src->len = staillen; in rsync_1()
584 src->buf[staillen] = 0; in rsync_1()
603 src->len = staillen; in rsync_1()
604 r_append (de->d_name, src); in rsync_1()
611 lstat (src->buf, &s); in rsync_1()
643 rsync (char *src, char *dest, int and_delete, int force_copies) in rsync() argument
645 r_setup (src, &spath); in rsync()