1 /*
2 minix/swap.h
3
4 Defines the super block of swap partitions and some useful constants.
5
6 Created: Aug 2, 1992 by Philip Homburg
7 */
8
9 #ifndef _MINIX__SWAP_H
10 #define _MINIX__SWAP_H
11
12 /* Two possible layouts for a partition with swapspace:
13 *
14 * Sector Swap partition FS+swap partition
15 *
16 * 0 - 1 bootblock bootblock
17 * 2 swap header FS header
18 * 3 blank swap header
19 * 4 - m swapspace file system
20 * m+1 - n - swapspace
21 */
22
23 #define SWAP_MAGIC0 0x9D
24 #define SWAP_MAGIC1 0xC3
25 #define SWAP_MAGIC2 0x01
26 #define SWAP_MAGIC3 0x82
27
28 typedef struct swap_hdr
29 {
30 u8_t sh_magic[4];
31 u8_t sh_version;
32 u8_t sh_dummy[3];
33 u32_t sh_offset;
34 u32_t sh_swapsize;
35 i32_t sh_priority;
36 } swap_hdr_t;
37
38 #define SWAP_BOOTOFF 1024
39 #define SWAP_OFFSET 2048
40 #define OPTSWAP_BOOTOFF (1024+512)
41 #define SH_VERSION 1
42 #define SH_PRIORITY 0
43
44 #endif /* _MINIX__SWAP_H */
45
46 /*
47 * $PchId: swap.h,v 1.6 1996/04/10 20:25:48 philip Exp $
48 */
Cache object: 724c057d8cacec72938c3c1716d20b5f
|