From d04c304ddfcdbbf876f9807c4cba80f90df5a130 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Fri, 11 Aug 2006 18:39:58 +0000 Subject: [PATCH] Forgot to bump version number after G_ELI_FLAG_READONLY flag addition. --- sys/geom/eli/g_eli.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/geom/eli/g_eli.h b/sys/geom/eli/g_eli.h index e217c1f274a8..9a507e0e5ef9 100644 --- a/sys/geom/eli/g_eli.h +++ b/sys/geom/eli/g_eli.h @@ -56,8 +56,9 @@ * 0 - Initial version number. * 1 - Added data authentication support (md_aalgo field and * G_ELI_FLAG_AUTH flag). + * 2 - Added G_ELI_FLAG_READONLY. */ -#define G_ELI_VERSION 1 +#define G_ELI_VERSION 2 /* ON DISK FLAGS. */ /* Use random, onetime keys. */ @@ -223,7 +224,7 @@ eli_metadata_decode_v0(const u_char *data, struct g_eli_metadata *md) return (0); } static __inline int -eli_metadata_decode_v1(const u_char *data, struct g_eli_metadata *md) +eli_metadata_decode_v1v2(const u_char *data, struct g_eli_metadata *md) { MD5_CTX ctx; const u_char *p; @@ -258,7 +259,8 @@ eli_metadata_decode(const u_char *data, struct g_eli_metadata *md) error = eli_metadata_decode_v0(data, md); break; case 1: - error = eli_metadata_decode_v1(data, md); + case 2: + error = eli_metadata_decode_v1v2(data, md); break; default: error = EINVAL;