H A D | send.c | 367 static void inconsistent_snapshot_error(struct send_ctx *sctx, argument 392 btrfs_err(sctx->send_root->fs_info, 394 result_string, what, sctx->cmp_key->objectid, 395 sctx->send_root->root_key.objectid, 396 (sctx->parent_root ? 397 sctx->parent_root->root_key.objectid : 0)); 401 static bool proto_cmd_ok(const struct send_ctx *sctx, int cmd) argument 403 switch (sctx->proto) { 411 static int is_waiting_for_move(struct send_ctx *sctx, u64 ino); 414 get_waiting_dir_move(struct send_ctx *sctx, u6 418 need_send_hole(struct send_ctx *sctx) argument 658 tlv_put(struct send_ctx *sctx, u16 attr, const void *data, int len) argument 691 tlv_put_string(struct send_ctx *sctx, u16 attr, const char *str, int len) argument 699 tlv_put_uuid(struct send_ctx *sctx, u16 attr, const u8 *uuid) argument 705 tlv_put_btrfs_timespec(struct send_ctx *sctx, u16 attr, struct extent_buffer *eb, struct btrfs_timespec *ts) argument 759 send_header(struct send_ctx *sctx) argument 772 begin_cmd(struct send_ctx *sctx, int cmd) argument 793 send_cmd(struct send_ctx *sctx) argument 818 send_rename(struct send_ctx *sctx, struct fs_path *from, struct fs_path *to) argument 843 send_link(struct send_ctx *sctx, struct fs_path *path, struct fs_path *lnk) argument 868 send_unlink(struct send_ctx *sctx, struct fs_path *path) argument 891 send_rmdir(struct send_ctx *sctx, struct fs_path *path) argument 1291 struct send_ctx *sctx; member in struct:backref_ctx 1415 struct send_ctx *sctx = bctx->sctx; local 1455 struct send_ctx *sctx = bctx->sctx; local 1528 const struct send_ctx *sctx = bctx->sctx; local 1581 find_extent_clone(struct send_ctx *sctx, struct btrfs_path *path, u64 ino, u64 data_offset, u64 ino_size, struct clone_root **found) argument 1819 gen_unique_name(struct send_ctx *sctx, u64 ino, u64 gen, struct fs_path *dest) argument 1895 get_cur_inode_state(struct send_ctx *sctx, u64 ino, u64 gen, u64 *send_gen, u64 *parent_gen) argument 1967 is_inode_existent(struct send_ctx *sctx, u64 ino, u64 gen, u64 *send_gen, u64 *parent_gen) argument 2132 will_overwrite_ref(struct send_ctx *sctx, u64 dir, u64 dir_gen, const char *name, int name_len, u64 *who_ino, u64 *who_gen, u64 *who_mode) argument 2194 did_overwrite_ref(struct send_ctx *sctx, u64 dir, u64 dir_gen, u64 ino, u64 ino_gen, const char *name, int name_len) argument 2265 did_overwrite_first_ref(struct send_ctx *sctx, u64 ino, u64 gen) argument 2291 name_cache_search(struct send_ctx *sctx, u64 ino, u64 gen) argument 2311 __get_cur_name_and_parent(struct send_ctx *sctx, u64 ino, u64 gen, u64 *parent_ino, u64 *parent_gen, struct fs_path *dest) argument 2446 get_cur_path(struct send_ctx *sctx, u64 ino, u64 gen, struct fs_path *dest) argument 2513 send_subvol_begin(struct send_ctx *sctx) argument 2601 send_truncate(struct send_ctx *sctx, u64 ino, u64 gen, u64 size) argument 2631 send_chmod(struct send_ctx *sctx, u64 ino, u64 gen, u64 mode) argument 2661 send_fileattr(struct send_ctx *sctx, u64 ino, u64 gen, u64 fileattr) argument 2694 send_chown(struct send_ctx *sctx, u64 ino, u64 gen, u64 uid, u64 gid) argument 2726 send_utimes(struct send_ctx *sctx, u64 ino, u64 gen) argument 2795 cache_dir_utimes(struct send_ctx *sctx, u64 dir, u64 gen) argument 2822 trim_dir_utimes_cache(struct send_ctx *sctx) argument 2846 send_create_inode(struct send_ctx *sctx, u64 ino) argument 2929 cache_dir_created(struct send_ctx *sctx, u64 dir) argument 2951 did_create_dir(struct send_ctx *sctx, u64 dir) argument 3005 send_create_inode_if_needed(struct send_ctx *sctx) argument 3090 free_recorded_refs(struct send_ctx *sctx) argument 3101 orphanize_inode(struct send_ctx *sctx, u64 ino, u64 gen, struct fs_path *path) argument 3122 add_orphan_dir_info(struct send_ctx *sctx, u64 dir_ino, u64 dir_gen) argument 3157 get_orphan_dir_info(struct send_ctx *sctx, u64 dir_ino, u64 gen) argument 3179 is_waiting_for_rm(struct send_ctx *sctx, u64 dir_ino, u64 gen) argument 3186 free_orphan_dir_info(struct send_ctx *sctx, struct orphan_dir_info *odi) argument 3200 can_rmdir(struct send_ctx *sctx, u64 dir, u64 dir_gen) argument 3332 is_waiting_for_move(struct send_ctx *sctx, u64 ino) argument 3339 add_waiting_dir_move(struct send_ctx *sctx, u64 ino, bool orphanized) argument 3372 get_waiting_dir_move(struct send_ctx *sctx, u64 ino) argument 3389 free_waiting_dir_move(struct send_ctx *sctx, struct waiting_dir_move *dm) argument 3398 add_pending_dir_move(struct send_ctx *sctx, u64 ino, u64 ino_gen, u64 parent_ino, struct list_head *new_refs, struct list_head *deleted_refs, const bool is_orphan) argument 3466 get_pending_dir_moves(struct send_ctx *sctx, u64 parent_ino) argument 3484 path_loop(struct send_ctx *sctx, struct fs_path *name, u64 ino, u64 gen, u64 *ancestor_ino) argument 3526 apply_dir_move(struct send_ctx *sctx, struct pending_dir_move *pm) argument 3668 free_pending_move(struct send_ctx *sctx, struct pending_dir_move *m) argument 3678 tail_append_pending_moves(struct send_ctx *sctx, struct pending_dir_move *moves, struct list_head *stack) argument 3696 apply_children_dir_moves(struct send_ctx *sctx) argument 3766 wait_for_dest_dir_move(struct send_ctx *sctx, struct recorded_ref *parent_ref, const bool is_orphan) argument 3972 wait_for_parent_move(struct send_ctx *sctx, struct recorded_ref *parent_ref, const bool is_orphan) argument 4073 update_ref_path(struct send_ctx *sctx, struct recorded_ref *ref) argument 4144 refresh_ref_path(struct send_ctx *sctx, struct recorded_ref *ref) argument 4172 process_recorded_refs(struct send_ctx *sctx, int *pending_move) argument 4668 record_ref_in_tree(struct rb_root *root, struct list_head *refs, struct fs_path *name, u64 dir, u64 dir_gen, struct send_ctx *sctx) argument 4714 struct send_ctx *sctx = ctx; local 4744 struct send_ctx *sctx = ctx; local 4770 record_new_ref(struct send_ctx *sctx) argument 4784 record_deleted_ref(struct send_ctx *sctx) argument 4799 record_changed_ref(struct send_ctx *sctx) argument 4821 process_all_refs(struct send_ctx *sctx, enum btrfs_compare_tree_result cmd) argument 4881 send_set_xattr(struct send_ctx *sctx, struct fs_path *path, const char *name, int name_len, const char *data, int data_len) argument 4903 send_remove_xattr(struct send_ctx *sctx, struct fs_path *path, const char *name, int name_len) argument 4928 struct send_ctx *sctx = ctx; local 4972 struct send_ctx *sctx = ctx; local 4990 process_new_xattr(struct send_ctx *sctx) argument 5000 process_deleted_xattr(struct send_ctx *sctx) argument 5068 struct send_ctx *sctx = ctx; local 5098 struct send_ctx *sctx = ctx; local 5111 process_changed_xattr(struct send_ctx *sctx) argument 5126 process_all_new_xattrs(struct send_ctx *sctx) argument 5163 send_verity(struct send_ctx *sctx, struct fs_path *path, struct fsverity_descriptor *desc) argument 5189 process_verity(struct send_ctx *sctx) argument 5241 max_send_read_size(const struct send_ctx *sctx) argument 5246 put_data_header(struct send_ctx *sctx, u32 len) argument 5273 put_file_data(struct send_ctx *sctx, u64 offset, u32 len) argument 5344 send_write(struct send_ctx *sctx, u64 offset, u32 len) argument 5381 send_clone(struct send_ctx *sctx, u64 offset, u32 len, struct clone_root *clone_root) argument 5453 send_update_extent(struct send_ctx *sctx, u64 offset, u32 len) argument 5483 send_hole(struct send_ctx *sctx, u64 end) argument 5538 send_encoded_inline_extent(struct send_ctx *sctx, struct btrfs_path *path, u64 offset, u64 len) argument 5604 send_encoded_extent(struct send_ctx *sctx, struct btrfs_path *path, u64 offset, u64 len) argument 5709 send_extent_data(struct send_ctx *sctx, struct btrfs_path *path, const u64 offset, const u64 len) argument 5832 send_capabilities(struct send_ctx *sctx) argument 5883 clone_range(struct send_ctx *sctx, struct btrfs_path *dst_path, struct clone_root *clone_root, const u64 disk_byte, u64 data_offset, u64 offset, u64 len) argument 6152 send_write_or_clone(struct send_ctx *sctx, struct btrfs_path *path, struct btrfs_key *key, struct clone_root *clone_root) argument 6184 is_extent_unchanged(struct send_ctx *sctx, struct btrfs_path *left_path, struct btrfs_key *ekey) argument 6374 get_last_extent(struct send_ctx *sctx, u64 offset) argument 6404 range_is_hole_in_parent(struct send_ctx *sctx, const u64 start, const u64 end) argument 6470 maybe_send_hole(struct send_ctx *sctx, struct btrfs_path *path, struct btrfs_key *key) argument 6510 process_extent(struct send_ctx *sctx, struct btrfs_path *path, struct btrfs_key *key) argument 6570 process_all_extents(struct send_ctx *sctx) argument 6606 process_recorded_refs_if_needed(struct send_ctx *sctx, int at_end, int *pending_move, int *refs_processed) argument 6629 finish_inode_if_needed(struct send_ctx *sctx, int at_end) argument 6816 close_current_inode(struct send_ctx *sctx) argument 6840 changed_inode(struct send_ctx *sctx, enum btrfs_compare_tree_result result) argument 7058 changed_ref(struct send_ctx *sctx, enum btrfs_compare_tree_result result) argument 7086 changed_xattr(struct send_ctx *sctx, enum btrfs_compare_tree_result result) argument 7113 changed_extent(struct send_ctx *sctx, enum btrfs_compare_tree_result result) argument 7143 changed_verity(struct send_ctx *sctx, enum btrfs_compare_tree_result result) argument 7154 dir_changed(struct send_ctx *sctx, u64 dir) argument 7170 compare_refs(struct send_ctx *sctx, struct btrfs_path *path, struct btrfs_key *key) argument 7214 changed_cb(struct btrfs_path *left_path, struct btrfs_path *right_path, struct btrfs_key *key, enum btrfs_compare_tree_result result, struct send_ctx *sctx) argument 7315 search_key_again(const struct send_ctx *sctx, struct btrfs_root *root, struct btrfs_path *path, const struct btrfs_key *key) argument 7348 full_send_tree(struct send_ctx *sctx) argument 7583 restart_after_relocation(struct btrfs_path *left_path, struct btrfs_path *right_path, const struct btrfs_key *left_key, const struct btrfs_key *right_key, int left_level, int right_level, const struct send_ctx *sctx) argument 7668 btrfs_compare_trees(struct btrfs_root *left_root, struct btrfs_root *right_root, struct send_ctx *sctx) argument 7954 send_subvol(struct send_ctx *sctx) argument 7999 ensure_commit_roots_uptodate(struct send_ctx *sctx) argument 8039 flush_delalloc_roots(struct send_ctx *sctx) argument 8091 struct send_ctx *sctx = NULL; local [all...] |