public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ZFS
@ 2012-05-22  3:32 Jorgen Lundman
  2012-05-22  3:38 ` Graeme Russ
  2012-05-22  8:25 ` Wolfgang Denk
  0 siblings, 2 replies; 12+ messages in thread
From: Jorgen Lundman @ 2012-05-22  3:32 UTC (permalink / raw)
  To: u-boot


Work based on current u-boot repository;

https://github.com/lundman/u-boot/compare/upstream...upstream-zfs

As previously discussed, all sources are GPLv2.

This patchs supports ZPOOL v28 (including ashift patches) on Single or 
Mirror VDEVs.

It does not work with RAIDZ and higher VDEVs.


-- 
Jorgen Lundman       | <lundman@lundman.net>
Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo    | +81 (0)90-5578-8500          (cell)
Japan                | +81 (0)3 -3375-1767          (home)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [U-Boot] [PATCH] ZFS
  2012-05-22  3:32 [U-Boot] [PATCH] ZFS Jorgen Lundman
@ 2012-05-22  3:38 ` Graeme Russ
  2012-05-22  3:51   ` Jorgen Lundman
  2012-05-22  8:25 ` Wolfgang Denk
  1 sibling, 1 reply; 12+ messages in thread
From: Graeme Russ @ 2012-05-22  3:38 UTC (permalink / raw)
  To: u-boot

Hi Jorgen,

On Tue, May 22, 2012 at 1:32 PM, Jorgen Lundman <lundman@lundman.net> wrote:
>
> Work based on current u-boot repository;
>
> https://github.com/lundman/u-boot/compare/upstream...upstream-zfs
>

These patches will likely not get reviewed and definitely will not get
merged unless that are posted to the mailing list

> As previously discussed, all sources are GPLv2.

Does that imply the possibility that a ZFS driver might one day get
added to the Linux kernel proper?

> This patchs supports ZPOOL v28 (including ashift patches) on Single or
> Mirror VDEVs.
>
> It does not work with RAIDZ and higher VDEVs.

Regards,

Graeme

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [U-Boot] [PATCH] ZFS
  2012-05-22  3:38 ` Graeme Russ
@ 2012-05-22  3:51   ` Jorgen Lundman
  2012-05-22  3:56     ` Graeme Russ
  0 siblings, 1 reply; 12+ messages in thread
From: Jorgen Lundman @ 2012-05-22  3:51 UTC (permalink / raw)
  To: u-boot

>
> Does that imply the possibility that a ZFS driver might one day get
> added to the Linux kernel proper?
>

ZOL http://zfsonlinux.org/ already exists and runs very well. But it should 
be noted that the license prohibits the *distribution* of Linux with ZFS. 
Which is why it is a separate kernel module. Read more about license on the 
ZOL pages from people who know more about it than I.

So *I* don't think we will see a kernel with ZFS already in it, but you can 
already "apt-get install zfs" for many distributions. I use initrd to load 
ZFS then boot my pool.

However, that is a separate issue here, since ZOL is based on the Solaris 
kernel sources, which are CDDL.

GRUB ZFS "booting" sources are based on the GRUB GPL sources, provided by 
Sun to GRUB.

They are very stripped down, and can only read files, on single/mirror. No 
RAIDZ etc logic was released as GPL, so GRUB sources can not boot from 
those volumes (a limitation from day one).

I did notice that Illumos (OpenIndiana) have work started on extending GRUB 
boot, and ZFS crypto. But that is currently futureware.

Lund

-- 
Jorgen Lundman       | <lundman@lundman.net>
Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo    | +81 (0)90-5578-8500          (cell)
Japan                | +81 (0)3 -3375-1767          (home)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [U-Boot] [PATCH] ZFS
  2012-05-22  3:51   ` Jorgen Lundman
@ 2012-05-22  3:56     ` Graeme Russ
  2012-05-22  5:04       ` Jorgen Lundman
  0 siblings, 1 reply; 12+ messages in thread
From: Graeme Russ @ 2012-05-22  3:56 UTC (permalink / raw)
  To: u-boot

Hi Jorgen,

On Tue, May 22, 2012 at 1:51 PM, Jorgen Lundman <lundman@lundman.net> wrote:
>
> GRUB ZFS "booting" sources are based on the GRUB GPL sources, provided by
> Sun to GRUB.

Hmm, I know that GRUB is GPLv3+ - Is the ZFS code GPLv3+ or was that
released under a different version?
(I know the ZFS license was discussed before, but I can't recall if
the explicit GPL version was referred to)

Regards,

Graeme

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [U-Boot] [PATCH] ZFS
  2012-05-22  3:56     ` Graeme Russ
@ 2012-05-22  5:04       ` Jorgen Lundman
  2012-05-22  6:30         ` Jorgen Lundman
  0 siblings, 1 reply; 12+ messages in thread
From: Jorgen Lundman @ 2012-05-22  5:04 UTC (permalink / raw)
  To: u-boot

GRUB 0.96 (2005) which received the initial ZFS GRUB sources was probably 
GPLv2. The ZFS sources files contributed are all tagged with GPLv2. I have 
left all header license chunks untouched.

>
> Hmm, I know that GRUB is GPLv3+ - Is the ZFS code GPLv3+ or was that
> released under a different version?
> (I know the ZFS license was discussed before, but I can't recall if
> the explicit GPL version was referred to)
>
> Regards,
>
> Graeme
>

-- 
Jorgen Lundman       | <lundman@lundman.net>
Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo    | +81 (0)90-5578-8500          (cell)
Japan                | +81 (0)3 -3375-1767          (home)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [U-Boot] [PATCH] ZFS
  2012-05-22  5:04       ` Jorgen Lundman
@ 2012-05-22  6:30         ` Jorgen Lundman
  2012-05-22  7:09           ` Graeme Russ
  0 siblings, 1 reply; 12+ messages in thread
From: Jorgen Lundman @ 2012-05-22  6:30 UTC (permalink / raw)
  To: u-boot


I stand corrected, going over the files now for the patching, nearly all 
ZFS related files (headers, and internals) are GPLv3. The GRUB specific 
files (the files interfacing with the GRUB API) appear to be GPLv2.

Lund

Jorgen Lundman wrote:
> GRUB 0.96 (2005) which received the initial ZFS GRUB sources was probably
> GPLv2. The ZFS sources files contributed are all tagged with GPLv2. I have
> left all header license chunks untouched.
>
>>
>> Hmm, I know that GRUB is GPLv3+ - Is the ZFS code GPLv3+ or was that
>> released under a different version?
>> (I know the ZFS license was discussed before, but I can't recall if
>> the explicit GPL version was referred to)
>>
>> Regards,
>>
>> Graeme
>>
>

-- 
Jorgen Lundman       | <lundman@lundman.net>
Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo    | +81 (0)90-5578-8500          (cell)
Japan                | +81 (0)3 -3375-1767          (home)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [U-Boot] [PATCH] ZFS
  2012-05-22  6:30         ` Jorgen Lundman
@ 2012-05-22  7:09           ` Graeme Russ
  2012-05-22  7:34             ` Jorgen Lundman
  0 siblings, 1 reply; 12+ messages in thread
From: Graeme Russ @ 2012-05-22  7:09 UTC (permalink / raw)
  To: u-boot

Hi Jorgen,

On May 22, 2012 4:31 PM, "Jorgen Lundman" <lundman@lundman.net> wrote:
>
>
> I stand corrected, going over the files now for the patching, nearly all
ZFS related files (headers, and internals) are GPLv3. The GRUB specific
files (the files interfacing with the GRUB API) appear to be GPLv2.

That is a problem. U-Boot is nominally GPLv2+ which would allow inclusion
of GPLv3 code but there are significant portions of U-Boot which are GPLv2
(Linux kernel code for example) which is a blocker :(

Regards,

Graeme

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [U-Boot] [PATCH] ZFS
  2012-05-22  7:09           ` Graeme Russ
@ 2012-05-22  7:34             ` Jorgen Lundman
  2012-05-22  7:40               ` Graeme Russ
  2012-05-22  8:29               ` Wolfgang Denk
  0 siblings, 2 replies; 12+ messages in thread
From: Jorgen Lundman @ 2012-05-22  7:34 UTC (permalink / raw)
  To: u-boot

>
> That is a problem. U-Boot is nominally GPLv2+ which would allow inclusion
> of GPLv3 code but there are significant portions of U-Boot which are GPLv2
> (Linux kernel code for example) which is a blocker :(
>

Originally the first checking has GPLv2. So GRUB bumped up the version 
somewhere along the way. I can go back to GPLv2 source, as there are no 
differences.

Lund


-- 
Jorgen Lundman       | <lundman@lundman.net>
Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo    | +81 (0)90-5578-8500          (cell)
Japan                | +81 (0)3 -3375-1767          (home)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [U-Boot] [PATCH] ZFS
  2012-05-22  7:34             ` Jorgen Lundman
@ 2012-05-22  7:40               ` Graeme Russ
  2012-05-22  8:29               ` Wolfgang Denk
  1 sibling, 0 replies; 12+ messages in thread
From: Graeme Russ @ 2012-05-22  7:40 UTC (permalink / raw)
  To: u-boot

Hi Jorgen,

On May 22, 2012 5:34 PM, "Jorgen Lundman" <lundman@lundman.net> wrote:
>>
>>
>> That is a problem. U-Boot is nominally GPLv2+ which would allow inclusion
>> of GPLv3 code but there are significant portions of U-Boot which are
GPLv2
>> (Linux kernel code for example) which is a blocker :(
>>
>
> Originally the first checking has GPLv2. So GRUB bumped up the version
somewhere along the way. I can go back to GPLv2 source, as there are no
differences.

Yep. Just provide a commit ID to cover our a..es :)

Regards,

Graeme

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [U-Boot] [PATCH] ZFS
  2012-05-22  3:32 [U-Boot] [PATCH] ZFS Jorgen Lundman
  2012-05-22  3:38 ` Graeme Russ
@ 2012-05-22  8:25 ` Wolfgang Denk
  2012-05-23  4:00   ` Jorgen Lundman
  1 sibling, 1 reply; 12+ messages in thread
From: Wolfgang Denk @ 2012-05-22  8:25 UTC (permalink / raw)
  To: u-boot

Dear Jorgen Lundman,

In message <4FBB08B2.7010407@lundman.net> you wrote:
> 
> https://github.com/lundman/u-boot/compare/upstream...upstream-zfs
> 
> As previously discussed, all sources are GPLv2.

How would this be possible?  My understanding is that ZFS comes
only under a GPL incompatible license.  Please elucidate.


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
Just about every computer on the market today runs Unix,  except  the
Mac (and nobody cares about it).                   - Bill Joy 6/21/85

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [U-Boot] [PATCH] ZFS
  2012-05-22  7:34             ` Jorgen Lundman
  2012-05-22  7:40               ` Graeme Russ
@ 2012-05-22  8:29               ` Wolfgang Denk
  1 sibling, 0 replies; 12+ messages in thread
From: Wolfgang Denk @ 2012-05-22  8:29 UTC (permalink / raw)
  To: u-boot

Dear Jorgen Lundman,

In message <4FBB4195.3000207@lundman.net> you wrote:
> >
> > That is a problem. U-Boot is nominally GPLv2+ which would allow inclusion
> > of GPLv3 code but there are significant portions of U-Boot which are GPLv2
> > (Linux kernel code for example) which is a blocker :(
> >
> 
> Originally the first checking has GPLv2. So GRUB bumped up the version 
> somewhere along the way. I can go back to GPLv2 source, as there are no 
> differences.

Please provide (as part of the commit message) _exact_ reference for
the origin of that code.

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
But it's real. And if it's real it can be affected ... we may not  be
able  to break it, but, I'll bet you credits to Navy Beans we can put
a dent in it.
	-- deSalle, "Catspaw", stardate 3018.2

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [U-Boot] [PATCH] ZFS
  2012-05-22  8:25 ` Wolfgang Denk
@ 2012-05-23  4:00   ` Jorgen Lundman
  0 siblings, 0 replies; 12+ messages in thread
From: Jorgen Lundman @ 2012-05-23  4:00 UTC (permalink / raw)
  To: u-boot



Wolfgang Denk wrote:
>>
>> As previously discussed, all sources are GPLv2.
>
> How would this be possible?  My understanding is that ZFS comes
> only under a GPL incompatible license.  Please elucidate.

Perhaps a more visual answer is in order, to my other two replies, on the 
license situation.

If you look in Solaris sources, for ZFS, you will find 94 files, of which 
94 files are of CDDL license. That is some:

(/usr/src/solaris11/usr/src)  wc -l ./uts/common/fs/zfs/*.[ch] 
./common/zfs/*.[ch] ./uts/common/sys/fs/z*
   103993 total

So, about 100k worth of source. But Sun had no way to boot intel platform. 
So they wrote a subset "ZFS boot" sources for GRUB, under GPL v2 license.



Ie, 22 files, all GPLv2.

(/usr/src/grub-0.97/) wc -l include/zfs/* fs/zfs/*.[ch]
   4328 total

At no point is the GRUB/u-boot ZFS sources the same as the actual 
file-system files. (Although, some of the headers overlap). As Sun wanted 
GRUB support, they were forced to release GRUB ZFS subset sources as GPLv2.

Lund

-- 
Jorgen Lundman       | <lundman@lundman.net>
Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo    | +81 (0)90-5578-8500          (cell)
Japan                | +81 (0)3 -3375-1767          (home)

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-05-23  4:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-22  3:32 [U-Boot] [PATCH] ZFS Jorgen Lundman
2012-05-22  3:38 ` Graeme Russ
2012-05-22  3:51   ` Jorgen Lundman
2012-05-22  3:56     ` Graeme Russ
2012-05-22  5:04       ` Jorgen Lundman
2012-05-22  6:30         ` Jorgen Lundman
2012-05-22  7:09           ` Graeme Russ
2012-05-22  7:34             ` Jorgen Lundman
2012-05-22  7:40               ` Graeme Russ
2012-05-22  8:29               ` Wolfgang Denk
2012-05-22  8:25 ` Wolfgang Denk
2012-05-23  4:00   ` Jorgen Lundman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox