Print this page
grub patch
@@ -16,10 +16,13 @@
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
*/
+/*
+ * Copyright 2012, Daniil Lunev
+ */
#ifndef GRUB_ZFS_HEADER
#define GRUB_ZFS_HEADER 1
#include <grub/err.h>
@@ -35,10 +38,11 @@
/*
* On-disk version number.
*/
#define SPA_VERSION 33ULL
+#define SPA_FEATURE_VERSION 5000ULL
/*
* The following are configuration names used in the nvlist describing a pool's
* configuration.
*/
@@ -132,10 +136,12 @@
grub_err_t
grub_zfs_add_key (grub_uint8_t *key_in,
grub_size_t keylen,
int passphrase);
+grub_err_t
+get_default_bootfs_obj(grub_device_t dev, char * path, grub_uint64_t * mdnobj);
extern grub_err_t (*grub_zfs_decrypt) (grub_crypto_cipher_handle_t cipher,
grub_uint64_t algo,
void *nonce,
char *buf, grub_size_t size,
const grub_uint32_t *expected_mac,