Changeset 5d96f427 in mainline for uspace/srv/bd/hr/superblock.c
- Timestamp:
- 2024-11-15T16:44:25Z (6 months ago)
- Children:
- 733564a
- Parents:
- bd51105
- git-author:
- Miroslav Cimerman <mc@…> (2024-11-15 16:08:11)
- git-committer:
- Miroslav Cimerman <mc@…> (2024-11-15 16:44:25)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/superblock.c
rbd51105 r5d96f427 54 54 errno_t hr_write_meta_to_vol(hr_volume_t *vol) 55 55 { 56 log_msg(LOG_DEFAULT, LVL_NOTE, "hr_write_meta_to_vol()");56 DPRINTF("hr_write_meta_to_vol()\n"); 57 57 58 58 errno_t rc; … … 71 71 72 72 if (vol->nblocks < meta_blkno) { 73 log_msg(LOG_DEFAULT, LVL_ERROR, 74 "not enough blocks to write metadata"); 73 ERR_PRINTF("not enough blocks to write metadat\n"); 75 74 rc = EINVAL; 76 75 goto error; 77 76 } else if (vol->nblocks == meta_blkno) { 78 log_msg(LOG_DEFAULT, LVL_ERROR,79 " there would be zero data blocks after writingmetadata, aborting");77 ERR_PRINTF("there would be zero data blocks after writing " 78 "metadata, aborting"); 80 79 rc = EINVAL; 81 80 goto error; … … 115 114 { 116 115 if (uint64_t_le2host(md->magic) != HR_MAGIC) { 117 printf("invalid magic\n");116 ERR_PRINTF("invalid magic\n"); 118 117 return EINVAL; 119 118 } … … 123 122 errno_t hr_fill_vol_from_meta(hr_volume_t *vol) 124 123 { 125 log_msg(LOG_DEFAULT, LVL_NOTE, "hr_get_vol_from_meta()");124 DPRINTF("hr_get_vol_from_meta()\n"); 126 125 127 126 errno_t rc; … … 171 170 172 171 if (vol->dev_no != uint32_t_le2host(metadata->extent_no)) { 173 log_msg(LOG_DEFAULT, LVL_ERROR,174 " number of divices in array differ: specified %zu,metadata states %u",172 ERR_PRINTF("number of divices in array differ: specified %zu, " 173 "metadata states %u", 175 174 vol->dev_no, uint32_t_le2host(metadata->extent_no)); 176 175 rc = EINVAL; … … 185 184 186 185 if (str_cmp(metadata->devname, vol->devname) != 0) { 187 log_msg(LOG_DEFAULT, LVL_ NOTE,188 "devname on metadata (%s) and config (%s) differ, using config",189 metadata->devname, vol->devname);186 log_msg(LOG_DEFAULT, LVL_WARN, 187 "devname on metadata (%s) and config (%s) differ, " 188 "using config", metadata->devname, vol->devname); 190 189 } 191 190 end:
Note:
See TracChangeset
for help on using the changeset viewer.