Changeset edebb4a1 in mainline for uspace/app/fdisk/fdisk.c


Ignore:
Timestamp:
2015-10-14T22:30:12Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ea0ff6b
Parents:
4b6635a7
Message:

Handle dummy partition addition/removal during label destruction/creation. Handle dummy label properly in fdisk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/fdisk/fdisk.c

    r4b6635a7 redebb4a1  
    565565                }
    566566
    567                 printf("Partition %d: %s", npart, scap);
     567                if (linfo.ltype == lt_none)
     568                        printf("Entire disk: %s", scap);
     569                else
     570                        printf("Partition %d: %s", npart, scap);
     571
    568572                if ((linfo.flags & lf_ext_supp) != 0) {
    569573                        rc = fdisk_pkind_format(pinfo.pkind, &spkind);
     
    653657        }
    654658
    655         if (npart > 0) {
     659        if ((linfo.flags & lf_can_delete_part) != 0) {
    656660                rc = nchoice_add(choice, "Delete partition",
    657661                    (void *)devac_delete_part);
Note: See TracChangeset for help on using the changeset viewer.