/trusty/user/app/storage/ |
D | block_mac.h | 34 struct block_mac { struct 37 #define BLOCK_MAC_INITIAL_VALUE(block_mac) \ argument 45 void block_mac_clear(const struct transaction* tr, struct block_mac* dest); 47 const struct block_mac* block_mac); 49 const struct block_mac* block_mac); 51 const struct block_mac* block_mac); 53 struct block_mac* block_mac, 56 struct block_mac* block_mac, 59 const struct block_mac* a, 60 const struct block_mac* b); [all …]
|
D | block_mac.c | 38 void block_mac_clear(const struct transaction* tr, struct block_mac* dest) { in block_mac_clear() 43 const struct block_mac* block_mac) { in block_mac_to_block_fs() argument 46 memcpy(&block, block_mac->data, block_mac_block_size(fs)); in block_mac_to_block_fs() 52 const struct block_mac* block_mac) { in block_mac_to_block() argument 54 return block_mac_to_block_fs(tr->fs, block_mac); in block_mac_to_block() 58 const struct block_mac* block_mac) { in block_mac_to_mac() argument 59 return block_mac->data + block_mac_block_size(tr->fs); in block_mac_to_mac() 63 struct block_mac* block_mac, in block_mac_set_block() argument 65 memcpy(block_mac->data, &block, block_mac_block_size(tr->fs)); in block_mac_set_block() 69 struct block_mac* block_mac, in block_mac_set_mac() argument [all …]
|
D | file.c | 49 struct block_mac block_map; 53 static bool file_tree_lookup(struct block_mac* block_mac_out, 90 const struct block_mac* file) { in file_block_map_init() 130 file_block_map_init(tr, &block_map, &file->block_mac); in file_print() 131 file_entry_ro = block_get(tr, &file->block_mac, NULL, &file_entry_ro_ref); in file_print() 134 block_mac_to_block(tr, &file->block_mac)); in file_print() 140 block_mac_to_block(tr, &file->block_mac), file_entry_ro->info.path, in file_print() 159 file.block_mac = block_tree_path_get_data_block_mac(&path); in files_print() 178 file_block_map_init(tr, &block_map, &file->block_mac); in file_check() 198 struct block_mac block_mac; in file_block_map_update() local [all …]
|
D | block_cache.h | 24 struct block_mac; 69 const struct block_mac* block_mac, 74 const struct block_mac* block_mac, 89 struct block_mac* block_mac, 104 const struct block_mac* block_mac, 133 const struct block_mac* block_mac,
|
D | block_tree.c | 118 assert(child_size <= sizeof(struct block_mac)); in block_tree_set_sizes() 120 assert(data_size <= sizeof(struct block_mac)); in block_tree_set_sizes() 557 static const struct block_mac* block_tree_node_get_child( in block_tree_node_get_child() 563 const struct block_mac* child = NULL; in block_tree_node_get_child() 596 static struct block_mac block_tree_node_get_data( in block_tree_node_get_data() 602 struct block_mac block_mac_ret = BLOCK_MAC_INITIAL_VALUE(block_mac_ret); in block_tree_node_get_data() 603 const struct block_mac* datap = NULL; in block_tree_node_get_data() 645 const struct block_mac* child; in block_tree_node_print_internal() 682 struct block_mac data; in block_tree_node_print_leaf() 732 const struct block_mac* block_mac) { in block_tree_print_sub_tree() argument [all …]
|
D | file.h | 31 struct block_mac to_commit_block_mac; 32 struct block_mac committed_block_mac; 33 struct block_mac block_mac; member 65 const struct block_mac* block_mac, 88 const struct block_mac* block_mac, 105 struct block_mac* new_files_block_mac); 112 struct block_mac* files_root);
|
D | block_tree.h | 72 struct block_mac root; 76 struct block_mac child; 77 struct block_mac data; 104 struct block_mac block_mac; member 122 struct block_mac data; 149 static inline struct block_mac block_tree_path_get_data_block_mac( in block_tree_path_get_data_block_mac() 168 struct block_mac data); 180 struct block_mac old_data, 182 struct block_mac new_data);
|
D | checkpoint.h | 27 struct block_mac* checkpoint_mac); 31 const struct block_mac* files, 32 const struct block_mac* free); 35 const struct block_mac* checkpoint,
|
D | block_map.h | 34 const struct block_mac* root, 40 struct block_mac* block_mac); 45 const struct block_mac* block_mac);
|
D | fs.h | 55 struct block_mac free; 56 struct block_mac files; 57 struct block_mac checkpoint; 142 struct block_mac checkpoint; 166 const struct block_mac* free, 167 const struct block_mac* files, 168 const struct block_mac* checkpoint);
|
D | checkpoint.c | 39 struct block_mac files; 40 struct block_mac free; 63 struct block_mac* checkpoint_mac) { in checkpoint_get_new_block() 97 const struct block_mac* files, in checkpoint_update_roots() 98 const struct block_mac* free) { in checkpoint_update_roots() 119 const struct block_mac* checkpoint, in checkpoint_read()
|
D | block_map.c | 38 const struct block_mac* root, in block_map_init() 63 struct block_mac* block_mac) { in block_map_get() argument 76 *block_mac = block_tree_path_get_data_block_mac(&path); in block_map_get() 91 const struct block_mac* block_mac) { in block_map_set() argument 120 if (block_mac && block_mac_valid(tr, block_mac)) { in block_map_set() 125 index, block_mac_to_block(tr, block_mac)); in block_map_set() 128 block_mac_to_block(tr, block_mac)); in block_map_set()
|
D | super.c | 150 struct block_mac free; 152 struct block_mac files; 156 struct block_mac checkpoint; 190 const struct block_mac* free, in update_super_block_internal() 191 const struct block_mac* files, in update_super_block_internal() 192 const struct block_mac* checkpoint, in update_super_block_internal() 308 const struct block_mac* free, in update_super_block() 309 const struct block_mac* files, in update_super_block() 310 const struct block_mac* checkpoint) { in update_super_block() 592 const struct block_mac* free, in fs_set_roots() [all …]
|
D | block_cache.c | 1181 const struct block_mac* block_mac, in block_get_no_tr_fail() argument 1190 assert(block_mac); in block_get_no_tr_fail() 1192 block = block_mac_to_block(tr, block_mac); in block_get_no_tr_fail() 1196 block_mac_to_mac(tr, block_mac), in block_get_no_tr_fail() 1220 const struct block_mac* block_mac, in block_get() argument 1232 data = block_get_no_tr_fail(tr, block_mac, iv, ref); in block_get() 1345 struct block_mac* block_mac, in block_put_dirty_etc() argument 1354 assert(block_mac); in block_put_dirty_etc() 1358 assert(!block_mac); in block_put_dirty_etc() 1378 if (block_mac) { in block_put_dirty_etc() [all …]
|
D | transaction.c | 163 struct block_mac* new_files, in transaction_rebuild_free_set() 164 struct block_mac* new_checkpoint) { in transaction_rebuild_free_set() 318 block_mac_to_block(tr, &path.entry[i].block_mac))); in check_free_tree() 331 struct block_mac new_files; in transaction_complete_etc() 336 struct block_mac new_checkpoint_mac; in transaction_complete_etc()
|
D | client.c | 422 file_info = file_get_info(tr, &file->block_mac, &ref); in storage_file_check_name() 425 block_mac_to_block(tr, &file->block_mac)); in storage_file_check_name() 900 const struct block_mac* block_mac, in storage_file_list_iter() argument 908 file_info = file_get_info(tr, block_mac, &ref); in storage_file_list_iter() 911 block_mac_to_block(tr, block_mac)); in storage_file_list_iter()
|
D | rules.mk | 84 $(LOCAL_DIR)/block_mac.c \
|
D | README.md | 38 - block_mac - Helper functions to bundle block numbers and mac values.
|
/trusty/user/app/storage/test/block_host_test/ |
D | rules.mk | 25 $(STORAGE_DIR)/block_mac.c \
|
D | block_test.c | 103 struct block_mac* block_mac_in_parent; 272 block_set_used_by_etc(block_mac_to_block(tr, &path.entry[0].block_mac), in mark_block_tree_in_use() 278 block_mac_to_block(tr, &path.entry[i].block_mac), in mark_block_tree_in_use() 292 const struct block_mac* file); in mark_files_in_use() 299 struct block_mac block_mac = block_tree_path_get_data_block_mac(&path); in mark_files_in_use() local 300 file_block_map_init(tr, &block_map, &block_mac); in mark_files_in_use() 302 block_mac_to_block(tr, &block_mac), false); in mark_files_in_use() 483 const size_t child_size = sizeof(struct block_mac); in block_tree_test_etc() 632 struct block_mac block_mac = BLOCK_MAC_INITIAL_VALUE(block_mac); in block_map_test() local 635 block_map_init(tr, &block_map, &block_mac, 128); in block_map_test() [all …]
|
/trusty/user/app/storage/test/storage_host_test/ |
D | rules.mk | 26 $(STORAGE_DIR)/block_mac.c \
|
D | storage_host_test.c | 70 path, create, block_mac_to_block(tr, &file->block_mac)); in open_test_file_etc() 75 block_mac_valid(tr, &file->block_mac)); in open_test_file_etc() 220 block_mac_to_block(tr, &file.block_mac)); in file_test_etc()
|