Changeset 10291a23 in mainline for uspace/srv/bd/hr/superblock.c
- Timestamp:
- 2025-04-20T14:50:11Z (4 weeks ago)
- Children:
- f09b75b
- Parents:
- afec52b4
- git-author:
- Miroslav Cimerman <mc@…> (2025-04-20 14:48:24)
- git-committer:
- Miroslav Cimerman <mc@…> (2025-04-20 14:50:11)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/superblock.c
rafec52b4 r10291a23 46 46 #include <str.h> 47 47 48 #include "metadata/native.h"49 48 #include "superblock.h" 50 49 #include "util.h" 51 50 #include "var.h" 52 51 52 #include "metadata/foreign/geom/g_mirror.h" 53 #include "metadata/native.h" 54 53 55 extern hr_superblock_ops_t metadata_native_ops; 56 extern hr_superblock_ops_t metadata_gmirror_ops; 54 57 55 58 static hr_superblock_ops_t *hr_superblock_ops_all[] = { 56 [HR_METADATA_NATIVE] = &metadata_native_ops 59 [HR_METADATA_NATIVE] = &metadata_native_ops, 60 [HR_METADATA_GEOM_MIRROR] = &metadata_gmirror_ops 57 61 }; 58 62 … … 96 100 } 97 101 98 meta_ops->decode(meta_block, metadata_struct);102 rc = meta_ops->decode(meta_block, metadata_struct); 99 103 100 104 free(meta_block); 105 106 if (rc != EOK) { 107 free(metadata_struct); 108 continue; 109 } 101 110 102 111 if (!meta_ops->has_valid_magic(metadata_struct)) {
Note:
See TracChangeset
for help on using the changeset viewer.