Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/kinit/fstype/swap_fs.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 672 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 #ifndef __LINUX_SWAP_FS_H
2 #define __LINUX_SWAP_FS_H
3
4 /* The basic structures of the swap super block */
5 #define SWAP_MAGIC_L 10
6 #define SWAP_RESERVED_L (1024 - SWAP_MAGIC_L)
7 #define SWAP_MAGIC_1 "SWAP-SPACE"
8 #define SWAP_MAGIC_2 "SWAPSPACE2"
9
10 /* Suspend signatures, located at same addr as swap magic */
11 #define SUSP_MAGIC_L 9
12 #define SUSP_MAGIC_1 "S1SUSPEND"
13 #define SUSP_MAGIC_2 "S2SUSPEND"
14 #define SUSP_MAGIC_U "ULSUSPEND"
15
16 /* The superblock is the last block in the first page */
17 #define SWAP_OFFSET() ((getpagesize() - 1024) >> 10)
18
19 /* On-disk "super block" */
20 struct swap_super_block {
21 char reserved[SWAP_RESERVED_L];
22 char magic[SWAP_MAGIC_L];
23 };
24
25 #endif