Lines Matching refs:fs_path

45  * A fs_path is a helper to dynamically build path names with unknown size.
51 struct fs_path {
71 (sizeof(struct fs_path) - offsetof(struct fs_path, inline_buf))
425 static void fs_path_reset(struct fs_path *p)
438 static struct fs_path *fs_path_alloc(void)
440 struct fs_path *p;
452 static struct fs_path *fs_path_alloc_reversed(void)
454 struct fs_path *p;
464 static void fs_path_free(struct fs_path *p)
473 static int fs_path_len(struct fs_path *p)
478 static int fs_path_ensure_buf(struct fs_path *p, int len)
529 static int fs_path_prepare_for_add(struct fs_path *p, int name_len,
559 static int fs_path_add(struct fs_path *p, const char *name, int name_len)
573 static int fs_path_add_path(struct fs_path *p, struct fs_path *p2)
587 static int fs_path_add_from_extent_buffer(struct fs_path *p,
604 static int fs_path_copy(struct fs_path *p, struct fs_path *from)
612 static void fs_path_unreverse(struct fs_path *p)
819 struct fs_path *from, struct fs_path *to)
844 struct fs_path *path, struct fs_path *lnk)
868 static int send_unlink(struct send_ctx *sctx, struct fs_path *path)
891 static int send_rmdir(struct send_ctx *sctx, struct fs_path *path)
983 struct fs_path *p,
1002 struct fs_path *p;
1230 struct fs_path *p, void *ctx)
1233 struct fs_path *pt = ctx;
1248 u64 ino, struct fs_path *path)
1749 struct fs_path *dest)
1821 struct fs_path *dest)
2029 u64 *dir, u64 *dir_gen, struct fs_path *name)
2099 struct fs_path *tmp_name;
2268 struct fs_path *name = NULL;
2315 struct fs_path *dest)
2447 struct fs_path *dest)
2450 struct fs_path *name = NULL;
2605 struct fs_path *p;
2635 struct fs_path *p;
2665 struct fs_path *p;
2698 struct fs_path *p;
2730 struct fs_path *p = NULL;
2850 struct fs_path *p;
3028 struct fs_path *full_path;
3059 static void set_ref_path(struct recorded_ref *ref, struct fs_path *path)
3102 struct fs_path *path)
3105 struct fs_path *orphan;
3484 static int path_loop(struct send_ctx *sctx, struct fs_path *name,
3528 struct fs_path *from_path = NULL;
3529 struct fs_path *to_path = NULL;
3530 struct fs_path *name = NULL;
3861 struct fs_path *fs_path)
3873 fs_path_reset(fs_path);
3874 ret = get_first_ref(root, ino, &parent, &parent_gen, fs_path);
3893 struct fs_path *fs_path)
3901 if (!fs_path) {
3902 fs_path = fs_path_alloc();
3903 if (!fs_path)
3956 parent, parent_gen, fs_path);
3968 fs_path_free(fs_path);
3980 struct fs_path *path_before = NULL;
3981 struct fs_path *path_after = NULL;
4076 struct fs_path *new_path;
4179 struct fs_path *valid_path = NULL;
4669 struct fs_path *name, u64 dir, u64 dir_gen,
4673 struct fs_path *path = NULL;
4711 struct fs_path *name, void *ctx)
4741 struct fs_path *name, void *ctx)
4882 struct fs_path *path,
4904 struct fs_path *path,
4929 struct fs_path *p;
4973 struct fs_path *p;
5163 static int send_verity(struct send_ctx *sctx, struct fs_path *path,
5194 struct fs_path *p;
5348 struct fs_path *p;
5386 struct fs_path *p;
5457 struct fs_path *p;
5485 struct fs_path *p = NULL;
5545 struct fs_path *fspath;
5610 struct fs_path *fspath;
5834 struct fs_path *fspath = NULL;