summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSami Kerola2014-04-25 22:37:58 +0200
committerSami Kerola2014-05-04 12:42:03 +0200
commit8a101b1447ce3f5c0286c5ebea452920b38133d3 (patch)
tree16970502d42818bd3052d733568e79114297504b /include
parentinclude/c.h: add macro to print definitions as string (diff)
downloadkernel-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')
-rw-r--r--include/swapheader.h1
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