#include <oskit/diskpart/diskpart.h>void diskpart_fill_entry(struct diskpart *array, int start, int size, struct diskpart *subs, int nsubs, short type, short fsys);
This function initializes a single partition entry.
- array
- Pointer to the struct diskpart entry to be filled
- start
- Starting sector on the disk for the partition.
- size
- Number of sectors in the partition.
- subs
- Pointer to its first child partition.
- nsubs
- Number of sub-partitions.
- type
- Partition type, as defined in diskpart.h
- fsys
- Filesystem in the partition (if known), as defined in diskpart.h