fp might be NULL.
[minix.git] / include / minix / partition.h
blob7932c97e54cb88b26efa76f285eedaa4253b4b38
1 /* minix/partition.h Author: Kees J. Bot
2 * 7 Dec 1995
3 * Place of a partition on disk and the disk geometry,
4 * for use with the DIOCGETP and DIOCSETP ioctl's.
5 */
6 #ifndef _MINIX__PARTITION_H
7 #define _MINIX__PARTITION_H
9 #ifndef _TYPES_H
10 #include <sys/types.h>
11 #endif
13 struct partition {
14 u64_t base; /* byte offset to the partition start */
15 u64_t size; /* number of bytes in the partition */
16 unsigned cylinders; /* disk geometry */
17 unsigned heads;
18 unsigned sectors;
21 #endif /* _MINIX__PARTITION_H */