Skip to contentSkip to conversation

Support for zfs version 14

PATCH New John Levon 1 participant 1 message Mar 12, 2009

lore
Share & tools
lore

John Levon

author
#0 lore raw

PATCH 1/1 Support for zfs version 14

# HG changeset patch
# User John Levon <[email protected]>
# Date 1236822104 25200
# Node ID ee0cc177dfa589c4cb21f6cb76aefeb0504a8100 # Parent c0559767ec1f4126b30460ed2161d75a363d5ee2 Support for zfs version 14.

tools/libfsimage/zfs/fsys_zfs.c +1 -2
@@ -298,8 +298,7 @@ uberblock_verify(uberblock_phys_t *ub, i
 		return (-1);
 
 	if (uber->ub_magic == UBERBLOCK_MAGIC &&
-	    uber->ub_version >= SPA_VERSION_1 &&
-	    uber->ub_version <= SPA_VERSION)
+	    uber->ub_version > 0 && uber->ub_version <= SPA_VERSION)
 		return (0);
 
 	return (-1);
tools/libfsimage/zfs/zfs-include/zfs.h +1 -11
@@ -28,17 +28,7 @@
 /*
  * On-disk version number.
  */
-#define	SPA_VERSION_1			1ULL
-#define	SPA_VERSION_2			2ULL
-#define	SPA_VERSION_3			3ULL
-#define	SPA_VERSION_4			4ULL
-#define	SPA_VERSION_5			5ULL
-#define	SPA_VERSION_6			6ULL
-#define	SPA_VERSION_7			7ULL
-#define	SPA_VERSION_8			8ULL
-#define	SPA_VERSION_9			9ULL
-#define	SPA_VERSION_10			10ULL
-#define	SPA_VERSION			SPA_VERSION_10
+#define	SPA_VERSION			14ULL
 
 /*
  * The following are configuration names used in the nvlist describing a pool's