Received: from list by lists.gnu.org with archive (Exim 4.71) id 1U2JrI-0006jy-RQ for mharc-grub-devel@gnu.org; Mon, 04 Feb 2013 06:05:08 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2JrD-0006h7-OS for grub-devel@gnu.org; Mon, 04 Feb 2013 06:05:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U2JrA-0007kS-Jm for grub-devel@gnu.org; Mon, 04 Feb 2013 06:05:03 -0500 Received: from mmserver.massimo-maggi.eu ([94.23.66.90]:34914 helo=mmserver.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2JrA-0007k3-7b for grub-devel@gnu.org; Mon, 04 Feb 2013 06:05:00 -0500 Received: from [IPv6:2001:b05:f:ffff::25] (unknown [IPv6:2001:b05:f:ffff::25]) by mmserver.localdomain (Postfix) with ESMTPSA id AE7933C0 for ; Mon, 4 Feb 2013 12:04:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=massimo-maggi.eu; s=mmserver; t=1359975896; bh=ZASD+fCzNLqGmKV1SuyrgtgnLkLjJeJrIT+QRjexjgE=; h=Date:From:To:Subject; b=ht/uBLyMpUJIiC9doLWqGY4q/4rnVD/IJsVu5dc3cHBuj777vq5lByIRxQ8N7PIa7 100iPcNw/pFYvbfHm483iKz3TXpogNXHePmhoNeTFR4qAiOBITfTxrAWgqkIgShWrW eSCDNemeHDa+VZLTnsjb2Oy2NEfZQcfpr1EjsihY= Message-ID: <510F9696.4040608@massimo-maggi.eu> Date: Mon, 04 Feb 2013 12:08:06 +0100 From: Massimo Maggi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130128 Thunderbird/17.0.2 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: [PATCH 0/5] ZFS Feature flags and LZ4 compression support X-Enigmail-Version: 1.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2TEMLXERBTGWOBWXBGICS" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 94.23.66.90 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2013 11:05:07 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2TEMLXERBTGWOBWXBGICS Content-Type: multipart/mixed; boundary="------------010604020206060808080303" This is a multi-part message in MIME format. --------------010604020206060808080303 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Dear Sirs, Recently ZFSOnLinux project merged feature flags support, which is already included in IllumOS and FreeBSD. This means that the on-disk format is slightly changed, and Grub2 is not able to mount upgraded pools anymore. Delphix developers have patched Grub1 in IllumOS when merging the first feature flags support, and I've ported their work to Grub2. Those patches were already merged in Gentoo: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-boot/grub/Cha= ngeLog?view=3Dmarkup and have already resolved an issue for an user who has accidentally upgraded his pool: https://github.com/zfsonlinux/zfs/issues/1257 If you want to see exactly which changes I've done to the original zfs_lz4.c file, you can see them on https://github.com/maxximino/grub2/commits/lz4_hist . In the following patches I've squashed all of the LZ4 related commits in one, to not make an unbuildable commit. Sorry for the GIT-esque style of sending patches, if you need them formatted in another way, or to fix something, just ask me. Thanks for your attention, Massimo Maggi Massimo Maggi (5): Fix reporting of RAIDZ vdevs in zfsinfo Accept pool version 5000 for feature flags Refactoring of function nvlist_find_value Check for feature flags needed to read from the pool. LZ4 compression in ZFS Makefile.util.def | 1 + grub-core/Makefile.core.def | 1 + grub-core/fs/zfs/zfs.c | 351 +++++++++++++++++++++++++++++++++----------- grub-core/fs/zfs/zfs_lz4.c | 321 ++++++++++++++++++++++++++++++++++++++= ++ grub-core/fs/zfs/zfsinfo.c | 20 ++- include/grub/zfs/dmu.h | 46 +++++- include/grub/zfs/zfs.h | 10 +- include/grub/zfs/zio.h | 1 + po/POTFILES.in | 1 + 9 files changed, 660 insertions(+), 92 deletions(-) create mode 100644 grub-core/fs/zfs/zfs_lz4.c --=20 1.8.1.1 --------------010604020206060808080303 Content-Type: text/plain; charset=ISO-8859-1; name="Attached Message Part" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Attached Message Part" --------------010604020206060808080303-- ------enig2TEMLXERBTGWOBWXBGICS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRD5aXAAoJEEO073X3hHDOSJ0IAIrHPP1npgqmqi8ijCrb4bIh /1q7IWPxner++CYcWxhMkcmG2Wn2+gpibPH6IXVVAZv0C6QAzuyYv2mhVgo+KWMn U3qqXoS8Osn8VKgr7i2u6BJw/sCmm0vorA2cFWGBkJH1f3S2fnx3Rtg48Hp2HCIW 1mSCgZvvbyOYoXXpD4LfEnufOCM5Sm4pmdowSq+H06n9P6aocLGO4AUoL12U4INO YhaLzJxB80V6mJf7/hsT18EdiTOsjZLYEvaKncM9MHxpBXV+b3BoudcE8kn/dL7m kSfYM4TpkKxNc4Pwa2LHqmVXEecMkpuCsAe//bdoaY526u+pBDz+C+TBEuP7E5o= =xnF6 -----END PGP SIGNATURE----- ------enig2TEMLXERBTGWOBWXBGICS--