Lines Matching defs:cctx
541 copy_dir(struct copy_ctx *cctx,
549 copy_entry(struct copy_ctx *cctx,
564 src_ent_path = talloc_asprintf(cctx, "%s/%s", src_dir_path, ent_name);
565 dest_ent_path = talloc_asprintf(cctx, "%s/%s", dest_dir_path, ent_name);
595 dest_ent_path, &st, cctx->uid, cctx->gid);
613 ret = copy_dir(cctx, ifd, src_ent_path,
626 &st, cctx->uid, cctx->gid);
647 copy_dir(struct copy_ctx *cctx,
702 ret = copy_entry(cctx,
715 ret = fchown(dest_dir_fd, cctx->uid, cctx->gid);
768 struct copy_ctx *cctx = NULL;
783 cctx = talloc_zero(NULL, struct copy_ctx);
784 if (!cctx) {
789 cctx->src_orig = src_root;
790 cctx->dst_orig = dst_root;
791 cctx->src_dev = s_src.st_dev;
792 cctx->uid = uid;
793 cctx->gid = gid;
795 ret = copy_dir(cctx, fd, src_root, AT_FDCWD,
806 talloc_free(cctx);