Partitioner module interface consists of three functions. These functions handle all requests of Part Module independently of used partition table type. The functions are following:
int read_partitions(int filehandle, struct disk_info *diskinfo, ERR_PARAM);
reads in a partition table from the device. This function
is capable of detection of used partition table type.
int commit_partitions(int filehandle, struct disk_info *diskinfo, int checkonly, ERR_PARAM);
analyzes the designed changes in the partition structures, checks that partition table can be created for the proposed changes and if not invoked in `check-only' mode modifies the partition table.
int dirty_partitions(struct disk_info *, struct disk_info *, ERR_PARAM);
analyzes the designed changes in the partition structure and returns one iff the disk partition table has to be modified to reflect the changes.