libfsimage: Support for zfs version 14.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 12 Mar 2009 10:58:47 +0000 (10:58 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 12 Mar 2009 10:58:47 +0000 (10:58 +0000)
Signed-off-by: Susan Kamm-Worrell <susan.kamm-worrell@sun.com>
tools/libfsimage/zfs/fsys_zfs.c
tools/libfsimage/zfs/zfs-include/zfs.h

index 1409e3cde6eb770a3884889a46c7c342e10bd60b..0e4e6aeeaff92a098e4c5c200268f89b18957943 100644 (file)
@@ -298,8 +298,7 @@ uberblock_verify(uberblock_phys_t *ub, int offset)
                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);
index 01873548539c0593c828e84f7a8db641c69c79d5..3fd679e458b1ef9ccbcdfef681f85c51e3b85e03 100644 (file)
 /*
  * 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