Changeset 4b6635a7 in mainline for uspace/app/fdisk/fdisk.c
- Timestamp:
- 2015-10-12T15:42:23Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- edebb4a1
- Parents:
- 6a0db524
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/fdisk/fdisk.c
r6a0db524 r4b6635a7 262 262 } 263 263 264 static int fdsk_select_fstype( fdisk_fstype_t *fstype)264 static int fdsk_select_fstype(vol_fstype_t *fstype) 265 265 { 266 266 nchoice_t *choice = NULL; … … 284 284 } 285 285 286 for (i = FDFS_CREATE_LO; i < FDFS_CREATE_HI; i++) {286 for (i = 0; i < VOL_FSTYPE_LIMIT; i++) { 287 287 rc = fdisk_fstype_format(i, &sfstype); 288 288 if (rc != EOK) … … 307 307 308 308 nchoice_destroy(choice); 309 *fstype = ( fdisk_fstype_t)sel;309 *fstype = (vol_fstype_t)sel; 310 310 return EOK; 311 311 error: … … 321 321 fdisk_part_spec_t pspec; 322 322 fdisk_cap_t cap; 323 fdisk_fstype_t fstype = fdfs_none;323 vol_fstype_t fstype = 0; 324 324 tinput_t *tinput = NULL; 325 325 char *scap; … … 577 577 } 578 578 579 if (pinfo.pkind != lpk_extended) 580 printf(", %s", sfstype); 579 if (pinfo.pkind != lpk_extended) { 580 switch (pinfo.pcnt) { 581 case vpc_empty: 582 printf(", Empty"); 583 break; 584 case vpc_fs: 585 printf(", %s", sfstype); 586 break; 587 case vpc_unknown: 588 printf(", Unknown"); 589 break; 590 } 591 } 592 581 593 printf("\n"); 582 594
Note:
See TracChangeset
for help on using the changeset viewer.