Changeset 372df8f in mainline for uspace/lib/c/include


Ignore:
Timestamp:
2015-10-09T07:00:23Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ecfc62
Parents:
0bde8523
Message:

Let VBD handle unlabeled devices too. Now volsrv only cares about partitions.

Location:
uspace/lib/c/include
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/ipc/vbd.h

    r0bde8523 r372df8f  
    3737
    3838typedef enum {
    39         VBD_DISK_ADD = IPC_FIRST_USER_METHOD,
    40         VBD_DISK_REMOVE,
     39        VBD_GET_DISKS = IPC_FIRST_USER_METHOD,
    4140        VBD_DISK_INFO,
    4241        VBD_LABEL_CREATE,
  • uspace/lib/c/include/ipc/vol.h

    r0bde8523 r372df8f  
    3737
    3838typedef enum {
    39         VOL_GET_DISKS = IPC_FIRST_USER_METHOD,
    40         VOL_DISK_INFO,
    41         VOL_LABEL_CREATE,
    42         VOL_DISK_EMPTY
     39        VOL_GET_PARTS = IPC_FIRST_USER_METHOD,
     40        VOL_PART_INFO,
     41        VOL_PART_EMPTY
    4342} vol_request_t;
    4443
  • uspace/lib/c/include/types/label.h

    r0bde8523 r372df8f  
    5252/** Disk label type */
    5353typedef enum {
     54        /** No label */
     55        lt_none,
    5456        /** BIOS Master Boot Record */
    5557        lt_mbr,
     
    5860} label_type_t;
    5961
     62#define LT_FIRST (lt_mbr)
    6063#define LT_LIMIT (lt_gpt + 1)
    6164
  • uspace/lib/c/include/vbd.h

    r0bde8523 r372df8f  
    9393extern int vbd_create(vbd_t **);
    9494extern void vbd_destroy(vbd_t *);
    95 extern int vbd_disk_add(vbd_t *, service_id_t);
    96 extern int vbd_disk_remove(vbd_t *, service_id_t);
     95extern int vbd_get_disks(vbd_t *, service_id_t **, size_t *);
    9796extern int vbd_disk_info(vbd_t *, service_id_t, vbd_disk_info_t *);
    9897extern int vbd_label_create(vbd_t *, service_id_t, label_type_t);
  • uspace/lib/c/include/vol.h

    r0bde8523 r372df8f  
    4747} vol_t;
    4848
    49 /** Disk information */
     49/** Partition information */
    5050typedef struct {
    51         /** Disk contents */
     51        /** Partition contents */
    5252        label_disk_cnt_t dcnt;
    53         /** Label type, if disk contents is label */
     53        /** Label type, if partition contents is label XXX */
    5454        label_type_t ltype;
    5555        /** Label flags */
    5656        label_flags_t flags;
    57 } vol_disk_info_t;
     57} vol_part_info_t;
    5858
    5959extern int vol_create(vol_t **);
    6060extern void vol_destroy(vol_t *);
    61 extern int vol_get_disks(vol_t *, service_id_t **, size_t *);
    62 extern int vol_disk_info(vol_t *, service_id_t, vol_disk_info_t *);
    63 extern int vol_label_create(vol_t *, service_id_t, label_type_t);
    64 extern int vol_disk_empty(vol_t *, service_id_t);
     61extern int vol_get_parts(vol_t *, service_id_t **, size_t *);
     62extern int vol_part_info(vol_t *, service_id_t, vol_part_info_t *);
     63extern int vol_part_empty(vol_t *, service_id_t);
    6564
    6665#endif
Note: See TracChangeset for help on using the changeset viewer.