struct fdisk_partition;

struct fdisk_disk {
  char *name;
  int size;

  struct fdisk_partition *partitions;

  struct fdisk_disk *next;
};


struct fdisk_partition {
  char *name;
  int type;

  struct fdisk_disk *disk;

  struct fdisk_partition *next_by_disk;
  struct fdisk_partition *next_by_type;
};


extern struct fdisk_disk *fdisk_disks;

extern struct fdisk_partition *fdisk_partitions[256];
/* points to the list of partitions, index is the partition type */

void
fdisk_reread();
