summaryrefslogtreecommitdiffstats
path: root/sys/geom/eli
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-10-25 07:48:53 +0000
committerpjd <pjd@FreeBSD.org>2011-10-25 07:48:53 +0000
commit3717f1c28dec5de3c158ce6de6678793d636bde2 (patch)
tree3cfbaf90ba4913f36bbe1056d2eda8beaac0a578 /sys/geom/eli
parenta2d6adcac80a4ed14ee839e02bb92bc13efaf51d (diff)
downloadFreeBSD-src-3717f1c28dec5de3c158ce6de6678793d636bde2.zip
FreeBSD-src-3717f1c28dec5de3c158ce6de6678793d636bde2.tar.gz
When metadata is at newer version than the highest supported, return
EOPNOTSUPP when decoding. MFC after: 3 days
Diffstat (limited to 'sys/geom/eli')
-rw-r--r--sys/geom/eli/g_eli.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/eli/g_eli.h b/sys/geom/eli/g_eli.h
index 68f92e5..ae43859 100644
--- a/sys/geom/eli/g_eli.h
+++ b/sys/geom/eli/g_eli.h
@@ -308,7 +308,7 @@ eli_metadata_decode(const u_char *data, struct g_eli_metadata *md)
error = eli_metadata_decode_v1v2v3v4v5v6(data, md);
break;
default:
- error = EINVAL;
+ error = EOPNOTSUPP;
break;
}
return (error);
OpenPOWER on IntegriCloud