Changeset 1c6c3e1d in mainline for uspace/srv/bd/vbd/disk.c
- Timestamp:
- 2023-10-22T17:55:33Z (15 months ago)
- Branches:
- ticket/834-toolchain-update
- Children:
- 350ec74
- Parents:
- 315d487 (diff), 133461c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/vbd/disk.c
r315d487 r1c6c3e1d 1 1 /* 2 * Copyright (c) 20 16Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 51 51 #include "types/vbd.h" 52 52 53 loc_srv_t *vbds_srv; 54 53 55 static fibril_mutex_t vbds_disks_lock; 54 56 static list_t vbds_disks; /* of vbds_disk_t */ … … 1122 1124 log_msg(LOG_DEFAULT, LVL_DEBUG, "loc_service_register('%s')", 1123 1125 name); 1124 rc = loc_service_register( name, &psid);1126 rc = loc_service_register(vbds_srv, name, &psid); 1125 1127 if (rc != EOK) { 1126 1128 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering " … … 1131 1133 } 1132 1134 1133 rc = loc_service_add_to_cat( psid, part_cid);1135 rc = loc_service_add_to_cat(vbds_srv, psid, part_cid); 1134 1136 if (rc != EOK) { 1135 1137 log_msg(LOG_DEFAULT, LVL_ERROR, "Failled adding partition " … … 1138 1140 free(part); 1139 1141 1140 rc = loc_service_unregister( psid);1142 rc = loc_service_unregister(vbds_srv, psid); 1141 1143 if (rc != EOK) { 1142 1144 log_msg(LOG_DEFAULT, LVL_ERROR, "Error unregistering " … … 1160 1162 "disk->svc_name='%s', id=%zu)", part->disk->svc_name, part->svc_id); 1161 1163 1162 rc = loc_service_unregister( part->svc_id);1164 rc = loc_service_unregister(vbds_srv, part->svc_id); 1163 1165 if (rc != EOK) 1164 1166 return EIO;
Note:
See TracChangeset
for help on using the changeset viewer.