root / lab4 / .minix-src / include / minix / partition.h @ 14
History | View | Annotate | Download (571 Bytes)
1 | 13 | up20180614 | /* 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
|
||
8 | |||
9 | #include <sys/types.h> |
||
10 | |||
11 | #include <minix/u64.h> |
||
12 | |||
13 | int minix_sizeup(char *name, u64_t *bytes); |
||
14 | |||
15 | struct part_geom {
|
||
16 | u64_t base; /* byte offset to the partition start */
|
||
17 | u64_t size; /* number of bytes in the partition */
|
||
18 | unsigned cylinders; /* disk geometry */ |
||
19 | unsigned heads;
|
||
20 | unsigned sectors;
|
||
21 | }; |
||
22 | |||
23 | #endif /* _MINIX__PARTITION_H */ |