From 9ba4271c2642dde70d1db32ee9041822d3539d2f Mon Sep 17 00:00:00 2001 From: "Bryant G. Duffy-Ly" Date: Fri, 7 Jan 2022 10:31:46 -0600 Subject: [PATCH] Add new max format version of 2 We're about to add new format structures so increment the max version to 2. Future commits will add the features before we release version 2 in the wild. Signed-off-by: Zach Brown --- kmod/src/format.h | 2 +- utils/man/scoutfs.5 | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/kmod/src/format.h b/kmod/src/format.h index 2824c3cb..46f2cb85 100644 --- a/kmod/src/format.h +++ b/kmod/src/format.h @@ -8,7 +8,7 @@ */ #define SCOUTFS_FORMAT_VERSION_MIN 1 #define SCOUTFS_FORMAT_VERSION_MIN_STR __stringify(SCOUTFS_FORMAT_VERSION_MIN) -#define SCOUTFS_FORMAT_VERSION_MAX 1 +#define SCOUTFS_FORMAT_VERSION_MAX 2 #define SCOUTFS_FORMAT_VERSION_MAX_STR __stringify(SCOUTFS_FORMAT_VERSION_MAX) /* statfs(2) f_type */ diff --git a/utils/man/scoutfs.5 b/utils/man/scoutfs.5 index fb56d19d..650145ec 100644 --- a/utils/man/scoutfs.5 +++ b/utils/man/scoutfs.5 @@ -373,6 +373,16 @@ The version that a mount is using is shown in the file in the mount's sysfs directory, typically .I /sys/fs/scoutfs/f.FSID.r.RID/ .RE +.sp +The defined format versions are: +.RS +.TP +.sp +.B 1 +Initial format version. +.TP +.B 2 +.RE .SH CORRUPTION DETECTION A