blob: 3fce0d0fbe07ba663e693a5725f6c37ea89f8440 [file] [log] [blame]
bigbiff7b4c7a62015-01-01 19:44:14 -05001#ifndef _SWAPHEADER_H
2#define _SWAPHEADER_H
3
4#define SWAP_VERSION 1
5#define SWAP_UUID_LENGTH 16
6#define SWAP_LABEL_LENGTH 16
7#define SWAP_SIGNATURE "SWAPSPACE2"
8#define SWAP_SIGNATURE_SZ (sizeof(SWAP_SIGNATURE) - 1)
9
10#include <stdint.h>
11
12struct swap_header_v1_2 {
13 char bootbits[1024]; /* Space for disklabel etc. */
14 uint32_t version;
15 uint32_t last_page;
16 uint32_t nr_badpages;
17 unsigned char uuid[SWAP_UUID_LENGTH];
18 char volume_name[SWAP_LABEL_LENGTH];
19 uint32_t padding[117];
20 uint32_t badpages[1];
21};
22
23#endif /* _SWAPHEADER_H */