Changeset 4b6635a7 in mainline for uspace/lib/fdisk/include


Ignore:
Timestamp:
2015-10-12T15:42:23Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
edebb4a1
Parents:
6a0db524
Message:

Volsrv empty partition detection.

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

Legend:

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

    r6a0db524 r4b6635a7  
    7171extern int fdisk_cap_parse(const char *, fdisk_cap_t *);
    7272extern int fdisk_ltype_format(label_type_t, char **);
    73 extern int fdisk_fstype_format(fdisk_fstype_t, char **);
     73extern int fdisk_fstype_format(vol_fstype_t, char **);
    7474extern int fdisk_pkind_format(label_pkind_t, char **);
    7575
  • uspace/lib/fdisk/include/types/fdisk.h

    r6a0db524 r4b6635a7  
    4141#include <stdint.h>
    4242#include <types/label.h>
     43#include <types/vol.h>
    4344#include <vbd.h>
    4445#include <vol.h>
     
    5758
    5859#define CU_LIMIT (cu_ybyte + 1)
    59 
    60 /** File system type */
    61 typedef enum {
    62         fdfs_none = 0,
    63         fdfs_unknown,
    64         fdfs_exfat,
    65         fdfs_fat,
    66         fdfs_minix,
    67         fdfs_ext4
    68 } fdisk_fstype_t;
    69 
    70 /** Highest fstype value + 1 */
    71 #define FDFS_LIMIT (fdfs_ext4 + 1)
    72 /** Lowest fstype allowed for creation */
    73 #define FDFS_CREATE_LO fdfs_exfat
    74 /** Highest fstype allowed for creation + 1 */
    75 #define FDFS_CREATE_HI (fdfs_ext4 + 1)
    7660
    7761/** Partition capacity */
     
    143127        /** Partition kind */
    144128        label_pkind_t pkind;
     129        /** Partition contents */
     130        vol_part_cnt_t pcnt;
    145131        /** File system type */
    146         fdisk_fstype_t fstype;
     132        vol_fstype_t fstype;
    147133        /** Partition ID */
    148134        vbd_part_id_t part_id;
     
    153139        /** Number of blocks */
    154140        aoff64_t nblocks;
     141        /** Service ID */
     142        service_id_t svc_id;
    155143} fdisk_part_t;
    156144
     
    162150        label_pkind_t pkind;
    163151        /** File system type */
    164         fdisk_fstype_t fstype;
     152        vol_fstype_t fstype;
    165153} fdisk_part_spec_t;
    166154
     
    171159        /** Partition kind */
    172160        label_pkind_t pkind;
     161        /** Partition contents */
     162        vol_part_cnt_t pcnt;
    173163        /** File system type */
    174         fdisk_fstype_t fstype;
     164        vol_fstype_t fstype;
    175165} fdisk_part_info_t;
    176166
Note: See TracChangeset for help on using the changeset viewer.