diff options
author | brian <brian@FreeBSD.org> | 2010-09-19 10:45:53 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2010-09-19 10:45:53 +0000 |
commit | 52f645c18bb0fa90bcc5366dae6fd02ff4ae7d4b (patch) | |
tree | 010ba190dfb1f050d9287559952f74650be6112a | |
parent | 7de71dad72f653e6f2c0d641030e3354aa6fc783 (diff) | |
download | FreeBSD-src-52f645c18bb0fa90bcc5366dae6fd02ff4ae7d4b.zip FreeBSD-src-52f645c18bb0fa90bcc5366dae6fd02ff4ae7d4b.tar.gz |
Support attaching version 4 metadata
Reviewed by: pjd
-rw-r--r-- | sys/geom/eli/g_eli.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/geom/eli/g_eli.h b/sys/geom/eli/g_eli.h index 8f9c5ca..35c21bb 100644 --- a/sys/geom/eli/g_eli.h +++ b/sys/geom/eli/g_eli.h @@ -228,8 +228,9 @@ eli_metadata_decode_v0(const u_char *data, struct g_eli_metadata *md) return (EINVAL); return (0); } + static __inline int -eli_metadata_decode_v1v2v3(const u_char *data, struct g_eli_metadata *md) +eli_metadata_decode_v1v2v3v4(const u_char *data, struct g_eli_metadata *md) { MD5_CTX ctx; const u_char *p; @@ -266,7 +267,8 @@ eli_metadata_decode(const u_char *data, struct g_eli_metadata *md) case 1: case 2: case 3: - error = eli_metadata_decode_v1v2v3(data, md); + case 4: + error = eli_metadata_decode_v1v2v3v4(data, md); break; default: error = EINVAL; |