Skip to contentSkip to conversation

Port over the latest zfs code from opensolaris-grub to libfsimage

PATCH New Jody Belka 1 participant 1 message Jan 15, 2009

lore
Share & tools
lore

Jody Belka

author
#0 lore raw

PATCH 1/1 Port over the latest zfs code from opensolaris-grub to libfsimage

3 files changed, 192 insertions(+), 97 deletions(-)
tools/libfsimage/common/fsimage_grub.h |    1 
tools/libfsimage/zfs/fsys_zfs.c        |  276 ++++++++++++++++++++++----------
tools/libfsimage/zfs/zfs-include/zfs.h |   12 -

# HG changeset patch
# User Jody Belka <[email protected]>
# Date 1232022187 0
# Branch zfs14
# Node ID 74b7416dc04c4bf734c4e8df7d64b2630da6ef0b
# Parent 10a8fae412c5e1b1cd24e58f94f780f180b84ab8
Port over the latest zfs code from opensolaris-grub to libfsimage

The existing libfsimage zfs code is rather old now, and can't read versions of zfs now in general use. Port over the current code from the opensolaris-patched grub, so that pygrub can be used again for booting solaris/zfs based domains.

tools/libfsimage/common/fsimage_grub.h +1 -0
diff -r 10a8fae412c5 -r 74b7416dc04c tools/libfsimage/common/fsimage_grub.h
@@ -78,6 +78,7 @@
 #define	ERR_DEV_VALUES 1
 #define	ERR_WONT_FIT 1
 #define	ERR_READ 1
+#define	ERR_NEWER_VERSION 1
 
 fsi_plugin_ops_t *fsig_init(fsi_plugin_t *, fsig_plugin_ops_t *);
 
tools/libfsimage/zfs/fsys_zfs.c +190 -86

404 lines not on this page · raw message

tools/libfsimage/zfs/zfs-include/zfs.h +1 -11
diff -r 10a8fae412c5 -r 74b7416dc04c tools/libfsimage/zfs/zfs-include/zfs.h
@@ -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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel