minix/include/minix/partition.h
David van Moolenbroek 3be9c7c33b Rename "struct partition" to "struct part_geom"
Change-Id: Ifaf9795ba70f5b933599b2a6ec9415e6bd13200c
2013-03-20 16:14:21 +00:00

24 lines
571 B
C

/* minix/partition.h Author: Kees J. Bot
* 7 Dec 1995
* Place of a partition on disk and the disk geometry,
* for use with the DIOCGETP and DIOCSETP ioctl's.
*/
#ifndef _MINIX__PARTITION_H
#define _MINIX__PARTITION_H
#include <sys/types.h>
#include <minix/u64.h>
int minix_sizeup(char *name, u64_t *bytes);
struct part_geom {
u64_t base; /* byte offset to the partition start */
u64_t size; /* number of bytes in the partition */
unsigned cylinders; /* disk geometry */
unsigned heads;
unsigned sectors;
};
#endif /* _MINIX__PARTITION_H */