*
* This file may be redistributed under the terms of the
* GNU Lesser General Public License.
- */
+ *
+ *
+ * Libfdisk sample to create partitions by specify size, for example:
+ *
+ * mkpart --label dos --device /dev/sdc 2M 2M 2M 10M 1M -
+ *
+ * creates 6 partitions:
+ * - 3 primary (3x 2M)
+ * - 1 extended (1x 10M)
+ * - 2 logical (1x 1M, 1x remaining-space-in-extended-partition)
+ *
+ * Notes:
+ * The sample specifies size and partno for MBR, and size only for another
+ * labels (e.g. GPT).
+ *
+ * The Ask-API does not use anything else than warning/info. The
+ * partitionning has to be done non-interactive.
+ */
#include <stdlib.h>
#include <unistd.h>
#include <string.h>