Changes in uspace/lib/fdisk/src/fdisk.c [7cec216:25444332] in mainline
- File:
-
- 1 edited
-
uspace/lib/fdisk/src/fdisk.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/fdisk/src/fdisk.c
r7cec216 r25444332 1 1 /* 2 * Copyright (c) 202 4Jiri Svoboda2 * Copyright (c) 2026 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 673 673 info->fstype = part->fstype; 674 674 info->pkind = part->pkind; 675 info->index = part->index; 675 676 info->label = part->label; 676 677 info->svc_id = part->svc_id; … … 819 820 errno_t rc; 820 821 821 rc = vol_part_eject(part->dev->fdisk->vol, part->svc_id );822 rc = vol_part_eject(part->dev->fdisk->vol, part->svc_id, vef_none); 822 823 if (rc != EOK) 823 824 return EIO; … … 1031 1032 1032 1033 if (pspec->pkind != lpk_logical) { 1033 rc = fdisk_part_get_free_idx(dev, &index); 1034 if (rc != EOK) 1035 return EIO; 1034 if (pspec->index == 0) { 1035 /* allocate first free index */ 1036 rc = fdisk_part_get_free_idx(dev, &index); 1037 if (rc != EOK) 1038 return EIO; 1039 } else { 1040 /* user-specified index */ 1041 index = pspec->index; 1042 } 1036 1043 } else { 1037 1044 index = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
