diff options
author | Sami Kerola | 2014-04-25 22:37:58 +0200 |
---|---|---|
committer | Sami Kerola | 2014-05-04 12:42:03 +0200 |
commit | 8a101b1447ce3f5c0286c5ebea452920b38133d3 (patch) | |
tree | 16970502d42818bd3052d733568e79114297504b /include/swapheader.h | |
parent | include/c.h: add macro to print definitions as string (diff) | |
download | kernel-qcow2-util-linux-8a101b1447ce3f5c0286c5ebea452920b38133d3.tar.gz kernel-qcow2-util-linux-8a101b1447ce3f5c0286c5ebea452920b38133d3.tar.xz kernel-qcow2-util-linux-8a101b1447ce3f5c0286c5ebea452920b38133d3.zip |
mkswap, swaplabel: move version number to header
Corrently only the swap version 1 is supported, which is a magic value so
move it to header.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'include/swapheader.h')
-rw-r--r-- | include/swapheader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/swapheader.h b/include/swapheader.h index 42d521a49..80fa36b88 100644 --- a/include/swapheader.h +++ b/include/swapheader.h @@ -11,6 +11,7 @@ struct swap_header_v1 { }; +#define SWAP_VERSION 1 #define SWAP_UUID_LENGTH 16 #define SWAP_LABEL_LENGTH 16 |