Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Sep 2010 10:45:53 +0000 (UTC)
From:      Brian Somers <brian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r212845 - head/sys/geom/eli
Message-ID:  <201009191045.o8JAjrud098980@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brian
Date: Sun Sep 19 10:45:53 2010
New Revision: 212845
URL: http://svn.freebsd.org/changeset/base/212845

Log:
  Support attaching version 4 metadata
  
  Reviewed by:	pjd

Modified:
  head/sys/geom/eli/g_eli.h

Modified: head/sys/geom/eli/g_eli.h
==============================================================================
--- head/sys/geom/eli/g_eli.h	Sun Sep 19 09:19:38 2010	(r212844)
+++ head/sys/geom/eli/g_eli.h	Sun Sep 19 10:45:53 2010	(r212845)
@@ -228,8 +228,9 @@ eli_metadata_decode_v0(const u_char *dat
 		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, 
 	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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009191045.o8JAjrud098980>