From 223ee5deef4130590098d907fbb4fd2f5b954018 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Wed, 27 Oct 2021 14:59:15 -0700 Subject: [PATCH] Declare v1 of the stable persistent format From now on if we make incompatible changes to structures or messages then we update the format version and ensure that the code can deal with all the versions in its supported range. Signed-off-by: Zach Brown --- kmod/src/format.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kmod/src/format.h b/kmod/src/format.h index bc6e5e6b..66bbf1c1 100644 --- a/kmod/src/format.h +++ b/kmod/src/format.h @@ -6,9 +6,9 @@ * structures that are communicated over the wire, and the protocol * behind the structures. */ -#define SCOUTFS_FORMAT_VERSION_MIN 0 +#define SCOUTFS_FORMAT_VERSION_MIN 1 #define SCOUTFS_FORMAT_VERSION_MIN_STR __stringify(SCOUTFS_FORMAT_VERSION_MIN) -#define SCOUTFS_FORMAT_VERSION_MAX 0 +#define SCOUTFS_FORMAT_VERSION_MAX 1 #define SCOUTFS_FORMAT_VERSION_MAX_STR __stringify(SCOUTFS_FORMAT_VERSION_MAX) /* statfs(2) f_type */