diff options
Diffstat (limited to 'include/swapheader.h')
-rw-r--r-- | include/swapheader.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/swapheader.h b/include/swapheader.h index 80fa36b88..c986202e3 100644 --- a/include/swapheader.h +++ b/include/swapheader.h @@ -1,16 +1,6 @@ #ifndef _SWAPHEADER_H #define _SWAPHEADER_H -struct swap_header_v1 { - char bootbits[1024]; /* Space for disklabel etc. */ - unsigned int version; - unsigned int last_page; - unsigned int nr_badpages; - unsigned int padding[125]; - unsigned int badpages[1]; -}; - - #define SWAP_VERSION 1 #define SWAP_UUID_LENGTH 16 #define SWAP_LABEL_LENGTH 16 @@ -26,4 +16,6 @@ struct swap_header_v1_2 { unsigned int badpages[1]; }; +#define SWAP_HEADER_SIZE (sizeof(struct swap_header_v1_2)) + #endif /* _SWAPHEADER_H */ |