Changeset 03661d19 in mainline for uspace/lib/fdisk/include


Ignore:
Timestamp:
2015-10-29T10:16:08Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
55f8c6e7
Parents:
9854a8f
Message:

Handle simplified capacity entry.

Location:
uspace/lib/fdisk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fdisk/include/fdisk.h

    r9854a8f r03661d19  
    7575extern void fdisk_cap_simplify(fdisk_cap_t *);
    7676extern void fdisk_cap_from_blocks(uint64_t, size_t, fdisk_cap_t *);
    77 extern int fdisk_cap_to_blocks(fdisk_cap_t *, size_t, uint64_t *);
     77extern int fdisk_cap_to_blocks(fdisk_cap_t *, fdisk_cvsel_t, size_t, uint64_t *);
    7878
    7979extern int fdisk_ltype_format(label_type_t, char **);
  • uspace/lib/fdisk/include/types/fdisk.h

    r9854a8f r03661d19  
    5757        cu_ybyte
    5858} fdisk_cunit_t;
     59
     60/** Which of values within the precision of the capacity */
     61typedef enum {
     62        /** The nominal (middling) value */
     63        fcv_nom,
     64        /** The minimum value */
     65        fcv_min,
     66        /** The maximum value */
     67        fcv_max
     68} fdisk_cvsel_t;
    5969
    6070typedef enum {
Note: See TracChangeset for help on using the changeset viewer.