Changeset 6f13257 in mainline for uspace/srv/bd/hr/metadata/native.c
- Timestamp:
- 2025-05-20T11:01:31Z (2 months ago)
- Children:
- c5b60e25
- Parents:
- a2281efc
- git-author:
- Miroslav Cimerman <mc@…> (2025-05-20 10:55:15)
- git-committer:
- Miroslav Cimerman <mc@…> (2025-05-20 11:01:31)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/metadata/native.c
ra2281efc r6f13257 53 53 #include "native.h" 54 54 55 static void *meta_native_alloc_struct(void); 56 static errno_t meta_native_init_vol2meta(const hr_volume_t *, void *); 57 static errno_t meta_native_init_meta2vol(const list_t *, 58 hr_volume_t *); 59 static void meta_native_encode(void *, void *); 60 static errno_t meta_native_decode(const void *, void *); 61 static errno_t meta_native_get_block(service_id_t, void **); 62 static errno_t meta_native_write_block(service_id_t, const void *); 63 static bool meta_native_has_valid_magic(const void *); 64 static bool meta_native_compare_uuids(const void *, const void *); 65 static void meta_native_inc_counter(void *); 66 static errno_t meta_native_save(hr_volume_t *, bool); 67 static const char *meta_native_get_devname(const void *); 68 static hr_level_t meta_native_get_level(const void *); 69 static uint64_t meta_native_get_data_offset(void); 70 static size_t meta_native_get_size(void); 71 static uint8_t meta_native_get_flags(void); 55 static void *meta_native_alloc_struct(void); 56 static errno_t meta_native_init_vol2meta(const hr_volume_t *, void *); 57 static errno_t meta_native_init_meta2vol(const list_t *, hr_volume_t *); 58 static void meta_native_encode(void *, void *); 59 static errno_t meta_native_decode(const void *, void *); 60 static errno_t meta_native_get_block(service_id_t, void **); 61 static errno_t meta_native_write_block(service_id_t, const void *); 62 static bool meta_native_has_valid_magic(const void *); 63 static bool meta_native_compare_uuids(const void *, const void *); 64 static void meta_native_inc_counter(void *); 65 static errno_t meta_native_save(hr_volume_t *, bool); 66 static const char *meta_native_get_devname(const void *); 67 static hr_level_t meta_native_get_level(const void *); 68 static uint64_t meta_native_get_data_offset(void); 69 static size_t meta_native_get_size(void); 70 static uint8_t meta_native_get_flags(void); 72 71 static hr_metadata_type_t meta_native_get_type(void); 73 static void 72 static void meta_native_dump(const void *); 74 73 75 74 hr_superblock_ops_t metadata_native_ops = { 76 .alloc_struct 77 .init_vol2meta 78 .init_meta2vol 79 .encode 80 .decode 81 .get_block 82 .write_block 83 .has_valid_magic 84 .compare_uuids 85 .inc_counter 86 .save 87 .get_devname 88 .get_level 89 .get_data_offset 90 .get_size 91 .get_flags 92 .get_type 93 .dump 75 .alloc_struct = meta_native_alloc_struct, 76 .init_vol2meta = meta_native_init_vol2meta, 77 .init_meta2vol = meta_native_init_meta2vol, 78 .encode = meta_native_encode, 79 .decode = meta_native_decode, 80 .get_block = meta_native_get_block, 81 .write_block = meta_native_write_block, 82 .has_valid_magic = meta_native_has_valid_magic, 83 .compare_uuids = meta_native_compare_uuids, 84 .inc_counter = meta_native_inc_counter, 85 .save = meta_native_save, 86 .get_devname = meta_native_get_devname, 87 .get_level = meta_native_get_level, 88 .get_data_offset = meta_native_get_data_offset, 89 .get_size = meta_native_get_size, 90 .get_flags = meta_native_get_flags, 91 .get_type = meta_native_get_type, 92 .dump = meta_native_dump 94 93 }; 95 94
Note:
See TracChangeset
for help on using the changeset viewer.