Changeset 25444332 in mainline for uspace/lib/fdisk/src/fdisk.c
- Timestamp:
- 2026-04-06T14:26:00Z (23 hours ago)
- Branches:
- master
- Children:
- 4116579, 8bf4494
- Parents:
- 4f16db1
- File:
-
- 1 edited
-
uspace/lib/fdisk/src/fdisk.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/fdisk/src/fdisk.c
r4f16db1 r25444332 1 1 /* 2 * Copyright (c) 202 5Jiri 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; … … 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.
