source: trunk/minix/include/minix/swap.h@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 942 bytes
Line 
1/*
2minix/swap.h
3
4Defines the super block of swap partitions and some useful constants.
5
6Created: 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
28typedef 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 */
Note: See TracBrowser for help on using the repository browser.