Changes in uspace/lib/fdisk/src/fdisk.c [25444332:4285f384] in mainline
- File:
-
- 1 edited
-
uspace/lib/fdisk/src/fdisk.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/fdisk/src/fdisk.c
r25444332 r4285f384 1 1 /* 2 * Copyright (c) 202 6Jiri Svoboda2 * Copyright (c) 2025 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;676 675 info->label = part->label; 677 676 info->svc_id = part->svc_id; … … 1032 1031 1033 1032 if (pspec->pkind != lpk_logical) { 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 } 1033 rc = fdisk_part_get_free_idx(dev, &index); 1034 if (rc != EOK) 1035 return EIO; 1043 1036 } else { 1044 1037 index = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
