[U-Boot] [PATCH v5 1/1] zfs: Add ZFS filesystem support

Wolfgang Denk wd at denx.de
Thu Aug 9 23:42:33 CEST 2012


Dear Jorgen Lundman,

In message <1342766905-1275-2-git-send-email-lundman at lundman.net> you wrote:
> U-Boot port is based on sources forked from GRUB-0.97 by Sun in 2004,
> which can be found here:
> http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/grub/grub-0.97/stage2/zfs-include/zfs.h
> 
> Released by Sun for GRUB under the license:
>   *  This program is free software; you can redistribute it and/or modify
>   *  it under the terms of the GNU General Public License as published by
>   *  the Free Software Foundation; either version 2 of the License, or
>   *  (at your option) any later version.
> 
> GRUB official releases include ZFS in version:
> ftp://alpha.gnu.org/gnu/grub/grub-1.99~rc1.tar.gz
> 
> And patched against GRUB Bazaar repository for ashift fixes (4KB HDDs)
> more conveniently found at github:
> https://github.com/pendor/grub-zfs/commit/e7b6ef3ac3b9685ac4c394c897b1d4221b7381f1
> 
> Signed-off-by: Jorgen Lundman <lundman at lundman.net>
> 
> ---
> 
> v5: * Re-port based on GPLv2 license files, from original Sun GRUB-0.97
>       and patch forward. Headers remained untouched, minor style changes in
>       some function. No logic changes required.
> 
> v4: * Add doc/README.zfs documentation
> 
> v3: * add missing patch revision history (this text)
>     * Submitted as single patch per Wolfgang Denk instructions
> 
> v2: * Keep Makefile placement alphabetically sorted.
>     * Clean ugly line breaks and indentation errors
>     * Fix license corruption in fs/Makefile
> 
> ---
> ---
>  Makefile                     |    2 +-
>  common/Makefile              |    1 +
>  common/cmd_zfs.c             |  236 +++++
>  doc/README.zfs               |   30 +
>  fs/Makefile                  |    1 +
>  fs/{ => zfs}/Makefile        |   39 +-
>  fs/zfs/dev.c                 |  137 +++
>  fs/zfs/zfs.c                 | 2396 ++++++++++++++++++++++++++++++++++++++++++
>  fs/zfs/zfs_fletcher.c        |   88 ++
>  fs/zfs/zfs_lzjb.c            |   97 ++
>  fs/zfs/zfs_sha256.c          |  148 +++
>  include/config_cmd_all.h     |    1 +
>  include/zfs/dmu.h            |  120 +++
>  include/zfs/dmu_objset.h     |   43 +
>  include/zfs/dnode.h          |   81 ++
>  include/zfs/dsl_dataset.h    |   53 +
>  include/zfs/dsl_dir.h        |   49 +
>  include/zfs/sa_impl.h        |   35 +
>  include/zfs/spa.h            |  292 +++++
>  include/zfs/uberblock_impl.h |   57 +
>  include/zfs/vdev_impl.h      |   70 ++
>  include/zfs/zap_impl.h       |  111 ++
>  include/zfs/zap_leaf.h       |  103 ++
>  include/zfs/zfs.h            |  122 +++
>  include/zfs/zfs_acl.h        |   55 +
>  include/zfs/zfs_znode.h      |   71 ++
>  include/zfs/zil.h            |   57 +
>  include/zfs/zio.h            |   92 ++
>  include/zfs/zio_checksum.h   |   50 +
>  include/zfs_common.h         |  109 ++
>  30 files changed, 4730 insertions(+), 16 deletions(-)
>  create mode 100644 common/cmd_zfs.c
>  create mode 100644 doc/README.zfs
>  copy fs/{ => zfs}/Makefile (56%)
>  create mode 100644 fs/zfs/dev.c
>  create mode 100644 fs/zfs/zfs.c
>  create mode 100644 fs/zfs/zfs_fletcher.c
>  create mode 100644 fs/zfs/zfs_lzjb.c
>  create mode 100644 fs/zfs/zfs_sha256.c
>  create mode 100644 include/zfs/dmu.h
>  create mode 100644 include/zfs/dmu_objset.h
>  create mode 100644 include/zfs/dnode.h
>  create mode 100644 include/zfs/dsl_dataset.h
>  create mode 100644 include/zfs/dsl_dir.h
>  create mode 100644 include/zfs/sa_impl.h
>  create mode 100644 include/zfs/spa.h
>  create mode 100644 include/zfs/uberblock_impl.h
>  create mode 100644 include/zfs/vdev_impl.h
>  create mode 100644 include/zfs/zap_impl.h
>  create mode 100644 include/zfs/zap_leaf.h
>  create mode 100644 include/zfs/zfs.h
>  create mode 100644 include/zfs/zfs_acl.h
>  create mode 100644 include/zfs/zfs_znode.h
>  create mode 100644 include/zfs/zil.h
>  create mode 100644 include/zfs/zio.h
>  create mode 100644 include/zfs/zio_checksum.h
>  create mode 100644 include/zfs_common.h

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
In C we had to code our own bugs, in C++ we can inherit them.


More information about the U-Boot mailing list