Lines Matching refs:fs_path
46 * A fs_path is a helper to dynamically build path names with unknown size.
52 struct fs_path {
72 (sizeof(struct fs_path) - offsetof(struct fs_path, inline_buf))
426 static void fs_path_reset(struct fs_path *p)
439 static struct fs_path *fs_path_alloc(void)
441 struct fs_path *p;
453 static struct fs_path *fs_path_alloc_reversed(void)
455 struct fs_path *p;
465 static void fs_path_free(struct fs_path *p)
474 static int fs_path_len(struct fs_path *p)
479 static int fs_path_ensure_buf(struct fs_path *p, int len)
530 static int fs_path_prepare_for_add(struct fs_path *p, int name_len,
560 static int fs_path_add(struct fs_path *p, const char *name, int name_len)
574 static int fs_path_add_path(struct fs_path *p, struct fs_path *p2)
588 static int fs_path_add_from_extent_buffer(struct fs_path *p,
605 static int fs_path_copy(struct fs_path *p, struct fs_path *from)
613 static void fs_path_unreverse(struct fs_path *p)
815 struct fs_path *from, struct fs_path *to)
840 struct fs_path *path, struct fs_path *lnk)
864 static int send_unlink(struct send_ctx *sctx, struct fs_path *path)
887 static int send_rmdir(struct send_ctx *sctx, struct fs_path *path)
979 struct fs_path *p,
998 struct fs_path *p;
1218 struct fs_path *p, void *ctx)
1221 struct fs_path *pt = ctx;
1236 u64 ino, struct fs_path *path)
1737 struct fs_path *dest)
1809 struct fs_path *dest)
2017 u64 *dir, u64 *dir_gen, struct fs_path *name)
2087 struct fs_path *tmp_name;
2256 struct fs_path *name = NULL;
2303 struct fs_path *dest)
2435 struct fs_path *dest)
2438 struct fs_path *name = NULL;
2593 struct fs_path *p;
2623 struct fs_path *p;
2653 struct fs_path *p;
2686 struct fs_path *p;
2718 struct fs_path *p = NULL;
2839 struct fs_path *p;
3017 struct fs_path *full_path;
3048 static void set_ref_path(struct recorded_ref *ref, struct fs_path *path)
3091 struct fs_path *path)
3094 struct fs_path *orphan;
3473 static int path_loop(struct send_ctx *sctx, struct fs_path *name,
3517 struct fs_path *from_path = NULL;
3518 struct fs_path *to_path = NULL;
3519 struct fs_path *name = NULL;
3850 struct fs_path *fs_path)
3862 fs_path_reset(fs_path);
3863 ret = get_first_ref(root, ino, &parent, &parent_gen, fs_path);
3882 struct fs_path *fs_path)
3890 if (!fs_path) {
3891 fs_path = fs_path_alloc();
3892 if (!fs_path)
3945 parent, parent_gen, fs_path);
3957 fs_path_free(fs_path);
3969 struct fs_path *path_before = NULL;
3970 struct fs_path *path_after = NULL;
4065 struct fs_path *new_path;
4168 struct fs_path *valid_path = NULL;
4652 struct fs_path *name, u64 dir, u64 dir_gen,
4656 struct fs_path *path = NULL;
4694 struct fs_path *name, void *ctx)
4724 struct fs_path *name, void *ctx)
4865 struct fs_path *path,
4887 struct fs_path *path,
4912 struct fs_path *p;
4956 struct fs_path *p;
5146 static int send_verity(struct send_ctx *sctx, struct fs_path *path,
5177 struct fs_path *p;
5331 struct fs_path *p;
5369 struct fs_path *p;
5440 struct fs_path *p;
5468 struct fs_path *p = NULL;
5528 struct fs_path *fspath;
5593 struct fs_path *fspath;
5817 struct fs_path *fspath = NULL;