Lines Matching refs:cctx
540 copy_dir(struct copy_ctx *cctx,
548 copy_entry(struct copy_ctx *cctx,
563 src_ent_path = talloc_asprintf(cctx, "%s/%s", src_dir_path, ent_name);
564 dest_ent_path = talloc_asprintf(cctx, "%s/%s", dest_dir_path, ent_name);
594 dest_ent_path, &st, cctx->uid, cctx->gid);
612 ret = copy_dir(cctx, ifd, src_ent_path,
625 &st, cctx->uid, cctx->gid);
646 copy_dir(struct copy_ctx *cctx,
701 ret = copy_entry(cctx,
714 ret = fchown(dest_dir_fd, cctx->uid, cctx->gid);
769 struct copy_ctx *cctx = NULL;
784 cctx = talloc_zero(NULL, struct copy_ctx);
785 if (!cctx) {
790 cctx->src_orig = src_root;
791 cctx->dst_orig = dst_root;
792 cctx->src_dev = s_src.st_dev;
793 cctx->uid = uid;
794 cctx->gid = gid;
796 ret = copy_dir(cctx, fd, src_root, AT_FDCWD,
807 talloc_free(cctx);