grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 0/5] ZFS Feature flags and LZ4 compression support


From: Massimo Maggi
Subject: [PATCH 0/5] ZFS Feature flags and LZ4 compression support
Date: Mon, 04 Feb 2013 12:08:06 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130128 Thunderbird/17.0.2

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/ChangeLog?view=markup
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

-- 
1.8.1.1

Attachment: Attached Message Part
Description: Text document

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]