From ca83b3035dd29544f0d84f110b194173f580e9d9 Mon Sep 17 00:00:00 2001 From: pjd Date: Sun, 8 May 2011 09:25:54 +0000 Subject: Version 6 is compatible with version 5 when it comes to control commands. MFC after: 1 week --- sys/geom/eli/g_eli_ctl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/geom') diff --git a/sys/geom/eli/g_eli_ctl.c b/sys/geom/eli/g_eli_ctl.c index a5de30b..65672d5 100644 --- a/sys/geom/eli/g_eli_ctl.c +++ b/sys/geom/eli/g_eli_ctl.c @@ -1014,7 +1014,12 @@ g_eli_config(struct gctl_req *req, struct g_class *mp, const char *verb) gctl_error(req, "No '%s' argument.", "version"); return; } - if (*version != G_ELI_VERSION) { + while (*version != G_ELI_VERSION) { + if (G_ELI_VERSION == G_ELI_VERSION_06 && + *version == G_ELI_VERSION_05) { + /* Compatible. */ + break; + } gctl_error(req, "Userland and kernel parts are out of sync."); return; } -- cgit v1.1