Changeset f63a0073 in mainline for uspace/srv
- Timestamp:
- 2015-11-17T10:23:24Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 363a504
- Parents:
- ed9bf14
- File:
-
- 1 edited
-
uspace/srv/bd/vbd/disk.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/vbd/disk.c
red9bf14 rf63a0073 538 538 label_info_t linfo; 539 539 vbds_disk_t *disk; 540 int rc ;540 int rc, rc2; 541 541 542 542 log_msg(LOG_DEFAULT, LVL_DEBUG, "vbds_label_create(%zu)", sid); … … 583 583 log_msg(LOG_DEFAULT, LVL_DEBUG, "vbds_label_create(%zu) - failure", sid); 584 584 if (disk->label == NULL) { 585 rc = label_open(sid, &label);586 if (rc != EOK) {585 rc2 = label_open(sid, &label); 586 if (rc2 != EOK) { 587 587 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed to open label in disk %s.", 588 588 disk->svc_name); 589 return rc2; 589 590 } 591 592 disk->label = label; 593 (void) vbds_disk_parts_add(disk, label); 590 594 } 591 595
Note:
See TracChangeset
for help on using the changeset viewer.
