svn commit: r212845 - head/sys/geom/eli

Brian Somers brian at FreeBSD.org
Sun Sep 19 10:45:54 UTC 2010


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;


More information about the svn-src-all mailing list