222 points · by bcantrill · 10y ago · 138 comments
Indeed, Conservancy believes this situation is one
battle in a larger proxy war by those who seek to
limit the scope of strong copyleft generally.
https://sfconservancy.org/blog/2016/feb/25/zfs-and-linux/I also fear about what Oracle could do, as they are copyright holders of parts of Linux (btrfs) and might decide to make things difficult for Canonical. Oracle has misused copyleft aggressively in the past, trying to strong-arm people into buying GPL exceptions for MySQL when they didn't need one, although in this case, they probably do have a good case for why a GPL exception would be necessary.
[1] http://blog.hansenpartnership.com/are-gplv2-and-cddl-incompa...
"Nominal statutory damages, divided among the thousands of copyright holders entitled to equal shares, scarcely lift the matter above the level of damnum absque injuria."
Besides it should be possible to easily distribute third party binary drivers for Linux and have some reasonable expectation that they work. The fact that you can't is one of the biggest reasons Android updates suck so much.
The situation with the nvidia driver relies on the part of the API that the Linux devs have claimed is not GPL. When nvidia wants more API, the Linux devs have pushed back against that:
http://linux.slashdot.org/story/12/10/11/1918251/alan-cox-to...
I don't know how this compares to ZFS. But regardless, there's another thing at play here, the method of distribution. Nvidia doesn't ship Linux together with its blob. I think that if nvidia did that, we would have a situation more analogous to ZFS + Ubuntu.
You are referring to symbols marked EXPORT_SYMBOL that the kernel will use when linking non-GPL code as part of the module load. ZFSOnLinux uses only these symbols. The kernel will not make symbols marked EXPORT_SYMBOL_GPL available to it and there are no hacks to access them through the presently GPL licensed compatibility layer. Code that bypasses this when built as a standalone module will not be accepted by the project.
However, there are other, valid examples like Linksys routers shipping with binary drivers for Broadcom NICs.
First, it's not without precedent. qmail's license prohibited binary redistribution (as well as modified source code distribution), and Debian's solution was packages that, as part of the install, patched, built, and installed qmail from sources on the target machine.
Secondly, this is already an option. The ZFS on Linux project [0] provides packages which do exactly this, by:
1. Distributing kernel sources and building them against the currently install(ed) kernel(s) via dkms. This is actually a common mechanism for module distribution, and is also used by Virtualbox, or anyone else distributing kernel extensions, closed-source or not, which aren't included in the mainline kernel.
2. Providing the userspace binaries to interact with the custom-built ZFS kernel modules built on behalf of the user in #1.
The difference here is Ubuntu distributing binary versions of the modules in the base install, which is important for things like installing on ZFS root, or accessing ZFS filesystems during install.
> It's not without precedent. [...] Debian's solution [for qmail]
> was packages that, as part of the install, patched, built, and
> installed qmail from sources on the target machine.
I don't see how this is a relevant comparison in this context beyond
the trivial "Debian has had some packages built from source at install
time in the past".At the time qmail was shipped in Debian's non-free section, and the resulting binary wasn't being linked to a GPL codebase to get around linking clauses.
So I can't see how this has anything to do with what's happening with ZFS here.
Ah yes, the bootstrapping problem.
Don't ship ZFS on it.
The overwhelming majority of users reliant on a CD-ROM drive to install a distro do not need nor want ZFS on their system.
$ yaourt -S zfs-git
Here is the source for the build script for the zfs-git package:https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=zfs-g...
They have already published commits to Linux under the GPL, they cannot just "take it back". The worst Oracle does is stop contributing to the kernel, which they rarely do to begin with. The "worst" Oracle can do is sue third parties that violate the GPL on their part of the kernel - which would predominantly be proprietary vendors.
"1.3. Covered Software means (a) the Original Software, or (b) Modifications, or (c) the combination of files containing Original Software with files containing Modifications, in each case including portions thereof."
"Any Covered Software that You distribute or otherwise make available in Executable form must also be made available in Source Code form and that Source Code form must be distributed only under the terms of this License."
The binary module they are distributing is the 'covered software' and they are making the source code and their modifications to that source code available via CDDL. They appear to be meeting their CDDL license burden.
In other words, Linux Kernel developers could sue because the GPL license terms aren't met, but Oracle couldn't sue because the CDDL license terms are being met.
But it's not a binary blob - the source code is supplied with the binary.
Isn't that good?
Can anyone point me out why this argument is wrong? Googling around for this I was actually suprised that propietary kernel modules are in fact a debated topic (obviously to little success of the opponents), but doesn't the practical existence of propietary kernel modules at least show that no-one has had a problem with this for a long time, legally speaking?
Nothing really prevents the LiveUSB distribution from writing to itself under ext3, build the ZFS during installation, then use the binary compiled from this process to set it up on the actual SSDs/HDDs. This is legally essentially the same binary blob Nvidia driver as you aren't distributing the binary.
I'm assuming the reason this wasn't done was due to the convenience + you'd need to setup the USB like:
https://help.ubuntu.com/community/LiveCD/Persistence
But once you compiled it on the persistent partition, you'd be able to perform the installation just fine legally and technically is my understanding.
http://linux.slashdot.org/story/12/10/11/1918251/alan-cox-to...
I don't know what the situation is with ZFS with regards to the APIs that it's using.
There is also the question of how the software is being combined and distributed. If you receive ZFS and Linux as a "single work", which in SFC's view Ubuntu is doing by putting it all together in a neat little binary package, then the copyleft might activate.
It also pays to be precise and lack thereof is why so many people are confused and conflicted about the licensing.
The Canonical Kernel Team has added the 'OpenZFS on Linux' source-code [0] in the ./zfs/ directory of the Ubuntu 4.4+ kernel tree [1].
The ZFS modules are built using the OpenZFS on Linux project's stand-alone build tools.
As I understand it from reading the code and following some ZFS project developer discussions the OpenZFS on Linux code is partitioned into common parts that are largely unchanged on all the operating systems it is ported to, plus (in this case) a Linux-specific glue layer that translates the Solaris API to the Linux API in the Solaris Porting Layer (SPL). Each part is built as separate modules; there are 8:
/lib/modules/${VERSION}/kernel/zfs/avl/zavl.ko
/lib/modules/${VERSION}/kernel/zfs/nvpair/znvpair.ko
/lib/modules/${VERSION}/kernel/zfs/spl/spl.ko
/lib/modules/${VERSION}/kernel/zfs/splat/splat.ko
/lib/modules/${VERSION}/kernel/zfs/unicode/zunicode.ko
/lib/modules/${VERSION}/kernel/zfs/zcommon/zcommon.ko
/lib/modules/${VERSION}/kernel/zfs/zfs/zfs.ko
/lib/modules/${VERSION}/kernel/zfs/zpios/zpios.ko
The licenses of each module: $ find . -type f | while read F; do echo "${F} $( modinfo -F license ${F})"; done | sort
./avl/zavl.ko CDDL
./nvpair/znvpair.ko CDDL
./splat/splat.ko GPL
./spl/spl.ko GPL
./unicode/zunicode.ko CDDL
./zcommon/zcommon.ko CDDL
./zfs/zfs.ko CDDL
./zpios/zpios.ko GPL
These binary kernel objects (a.k.a. modules) are distributed in the Ubuntu linux-image-${VERSION}_${ARCH}.deb [2] according to Canonical's interpretation as an aggregate work as far as copyright is concerned.
That is, works from different projects in the same container, as in e.g. an ISO image.As can be seen above the 'glue' layer (SPL) is under the GPL. 'zfs.ko' depends on 'spl.ko' (needs to dynamically link to it at run-time):
$ modinfo -F depends zfs/zfs.ko
spl,znvpair,zunicode,zcommon,zavl
The modules under the CDDL contain the core OpenZFS code which is not derived in any way from Linux.This suggests to me that any conflict between the CDDL and GPLv2 occurs in the OpenZFS on Linux port/project itself, not between the Linux kernel project GPLv2 license and the OpenZFS on Linux CDDL.
In other words, if there is a violation of the GPLv2 as Software Freedom Conservatory (SFC) claim, it occurs in the distribution of the OpenZFS on Linux binaries themselves, since that will combine both CDDL and GPLv2 binaries, even if that was distributed as a stand-alone package (e.g. OpenZFSonLinux.deb) - regardless of whether those binary modules are aggregated with the Linux kernel or not.
I'm pointing this out since most commentary I've read seems to assume that when "GPLv2" is mentioned it means the Linux kernel licence, whereas this analysis suggests the conflict is in the OpenZFS on Linux project's use of CDDL and GPLv2 if distributed in binary form.
There may be an additional viewpoint: that the code in 'spl.ko' (The Solaris Porting Layer) is a derivative of the Linux kernel code; I'm not clear if that is the case or if it would have any impact on the SFC 'binary distribution' theory.
Moving on... once installed on a target system there is a kernel image, Linux mainline dynamically loadable kernel modules, and third-party kernel modules (ZFS, DKMS-based modules, etc.):
/boot/vmlinuz-${VERSION}
/lib/modules/${VERSION}/kernel/
/lib/modules/${VERSION}/kernel/zfs/
/lib/modules/${VERSION}/updates/
Assuming ZFS is in use as the root file-system the ZFS modules
will be copied into the initial ramdisk by the 'update-initramfs' tool scripts: /boot/initrd.img-${VERSION}
At boot-time the kernel will dynamically load the ZFS modules from this initial RAM disk image; This is the point where dynamic linkage actually occurs.This is also usually the focus of arguments about GPLv2 compatibility, as in, for example, the nvidia kernel module.
In the nvidia case, rather like OpenZFS on Linux, the core code is not derived from Linux but is stand-alone and common across other operating systems (Windows, BSD). An nvidia GPLv2 API translation module is dynamically built (using DKMS) to match the kernel installed/running version(s) on the target system to the nvidia 'common core' binary blob library.
The obvious difference (setting aside the nvidia vs OpenZFS licenses) is OpenZFS on Linux API translation (SPL) is pre-built and distributed as a binary by Canonical/Ubuntu.
[0] https://github.com/zfsonlinux/ [1] http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/tree/z... [2] http://packages.ubuntu.com/xenial/amd64/linux-image-4.4.0-10...
The problem is solely with distributing in "object code or executable form" a "work" based on a GPLv2 program without also providing the source to that work under a GPLv2 license: http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
Practically everyone agrees that if the end user puts the GPL and CDDL pieces together (whether compiled from source or downloaded as separate binaries) that there is no legal problem. The issue is whether the conjoined pieces that Ubuntu plans to distribute constitute a single "work", for if so the GPL says that this "work" cannot be distributed with the ZFS source offered under the less restrictive CDDL.
If Ubuntu's distribution is a single "work", there isn't that much dispute that it would be considered a derivative work of the constituent pieces. So the question becomes, does a compiled kernel plus an assortment of compiled kernel modules bundled together in whatever form Ubuntu offers constitute a "work based on the Program" as defined by the GPL license?
Unfortunately, I don't think there is any clear answer possible. The technical logic of the matter is only relevant in so far as one side's lawyer can persuade one or several non-technical judges that their side has more factors in favor of their interpretation than the other side has in its. If it actually went to trial, the outcome (and possible appeals) would be a crap-shoot.
You wrote:
"The issue is whether the conjoined pieces that Ubuntu plans to distribute constitute a single "work", for if so the GPL says that this "work" cannot be distributed with the ZFS source offered under the less restrictive CDDL."
My point is that the OpenZFS on Linux project contains individual components licensed by either the CDDL or GPLv2 is where the problem lies.
As in, if I distribute binaries of the OpenZFS on Linux project to you on their own this apparent CDDL vs GPLv2 conflict arises.
In that case bundling with the Linux kernel is irrelevant to the claimed issue of license incompatibility (unless the SPL is considered a derivative work of Linux [and that implies some further license interference pattern] - but equally it could be said SPL is a derivative of Solaris).
Bundling would usually fall under the copyright aggregation definition, which in almost all jurisdictions does not cause license conflicts between the component parts of the aggregated works.
Because of all ways to fill in the "Hope _____ doesn't sue" plan, "Oracle" must be in the top 5 worst companies to fill in the blank with in the tech industry.
The real question is whether Oracle could convince a jury. It is hard to imagine what their argument would be. Then again, I would have never imagined that they would use copyright law over APIs to attack Google's use of Java.
https://softwarefreedom.org/resources/2016/linux-kernel-cddl...
Perhaps you are confusing them with SFC:
The real problem here is that Oracle is the sort of company that does "test it in court". Is Canonical really big enough to be able to afford this level of risk? Even if they win I would be surprised if they managed to talk the judge into awarding them lawyer costs from Oracle. There's definitely enough ambiguity here that it wouldn't be a stupid suit. Legally, anyhow.
This is a faulty understanding of the issue. Other distros such as Debian are packaing 'ZFS on Linux'. Ubuntu is not the first one to offer the ability to have ZFS on Linux in the distros main repository. The difference is actually that the other distros distribute the ZFS code as source, then have the user compile it on their own computer, and then those distros consider that end product as non-redistributable. Whereas Ubunutu is doing the compilation on their own, then distributing the resulting binary work. That's the actual difference.
https://en.wikipedia.org/wiki/Adam_Leventhal_%28programmer%2...
Keep in mind IANAL and this is just my limited understanding of the issue.
I've been selling to enterprise customers for a little while now. All technology has risk, new technology and the status quo alike. Companies weigh those risks against the expected benefits. Some folks will obviously avoid the brouhaha completely; it makes sense. Others will decide that the benefits outweigh the risk; there's nothing less comprehensible about that decision.
http://dtrace.org/blogs/ahl/2016/03/07/big-news-for-zfs-on-l...
I don't understand people like this. If they were advocating using pirate copies of Microsoft Windows or other proprietary software, would they be saying "ignore Microsoft legal department and focus on how cool it is that I get a free copy of Windows ?
Stupid, stupid, stupid.
You may have the chops and cred to call someone stupid that wrote dtrace but I'd certainly hesitate before doing so myself.
Why imply it should convert to GPL? It could become GPL compatible by making the license more permissive.
https://blogs.oracle.com/chandan/entry/copyrights_licenses_a...
"A common misconception is about CDDL and GPL incompatibility. (Incompatibility in the sense: to combine two source files, one under GPL and another under CDDL, to create a common executable.) GPL is incompatible with most licenses like Mozilla Public License, Apache, and CDDL. GPL wants you erase those licenses and use GPL in that place, where as these licenses do not permit erasing them. Hence the incompatibility deadlock."
which i think is great.
RAID1 is implemented to use the oddness of the pid to decide which disk to read from... RAID5/6 have huge performance problems in certain use-cases. Write hole is apparently still a thing.
Quota seems to be still broken or difficult to handle, the tooling is not exactly nice or intuitive (this may change in the future).
Hardware failure handling is nonexistent - it can't detect a broken drive.
Lot's of other gotchas. Just read the mailing list. I've been fighting against btrfs for a while and I'm happy when I'm not having to deal with it. Works probably fine for desktop usage but don't bother stressing it - at the moment it will break horrible.
That was admittedly a few years back, but it's still a long way from production use in many respects, while ZFS has been in production use for years and is well documented, has good tools, and is very robust. After several years of Btrfs problems, I gave up on it and moved to ZFS, initially on Linux and then on FreeBSD due to it being better integrated.
There are definitely things Btrfs can already do that ZFS cannot, like read-writable snapshots, no parent-child dependency (you can create a snapshot and immediately delete the original), growing pools is easier/faster without having to build new arrays or sequentially replace devices and resilver, etc. And just in the last week there's an experimental encryption patch for per subvolume encryption (eventually per file similar to f2fs and ext4), so the situation is heavy development.
The other thing that matters a ton is kernel version, the development is so heavy there are thousands of insertions+deletions per kernel cycle that even in a year it's ordinary to consider those kernels "old" on the list. Most distros by default use old kernels by Btrfs development standards. The exception is Fedora, and openSUSE who do lots of backports explicitly to support Btrfs.
SUSE Linux Enterprise also uses btrfs by default. There's also a bunch of features like booting into snapshots and snapper (snapshots taken before zypper transactions and on regular intervals with decaying granularity) which are in both OpenSUSE and SLE.
So Canonical, a tiny desktop-focused Linux company, have discovered something that Red Hat's well paid lawyers have missed?
They are a commercial slightly modified Debian distro who have been shipping ZFS with their ISOs and ready to use out of the box, even from the installer wizard for zfs on root installs for around a year now.
Nobody has said anything about them doing this or sued them or tried to stop them.
They are distributing the ZFS on linux binary kernel module pre-instated as Canonical is about to do with Ubuntu.
Edit: Oracle seems to have very little reason to do anything for precedent. Canonical is both competition and a largish business, that would be done for the money, suing proxmox would look like being a bully.
That sounds like bad advice.
This guy is writing a windows driver for Btrfs
ZFS is indeed a lifesaver, but we in the BSD camps have know this for many moons.
Adding ZFS to Ubuntu is a benefit to everybody, and a smug, holier-than-thou attitude really does nothing to further the conversation about the technology.
Sticking a hack-licensing-job into Ubuntu is damaging to the Linux ecosystem, certainly not a benefit.
This is true, in the same way that it's true that the US could vote in a constitutional amendment to allow a dictatorship.
First, Oracle only has the copyright to the original ZFS code as it existed in 2010 when they stopped working on OpenSolaris.
Second, the AUTHORS[0] file from the 'zfs on linux' project that was imported into ubuntu lists 73 authors not including the Oracle developers, which appear to be both individuals (gmail accounts, etc) and multiple individual businesses (nexenta, ovh, etc). So Oracle cannot naively relicense those 6+ years of contributions, since they have no copyright over that new code. Thus changing the license of the original ZFS code would have no effect because all of the years of contributions since then would still be licensed as CDDL.
Third, Oracle does have exactly one 'option'. The details of the CDDL license specifically state that is 'auto upgrades' if a new version comes out, and an older version is not specifically mentioned. So theoretically, they could release a CDDL license version 1.3 that has radically updated text in order to be GPL compatible. However, since that effects all CDDL licensed code, they would end up relicensing every bit of CDDL code (related to Oracle or not) in the entire world. Is that something that Oracle should reasonable be expected to do? I think this is as likely, and as reasonable, as GPL v4 coming out with the text of the MIT license, thus affecting any GPL code in the world that says 'or any later version'. In other words, it's just not reasonable to use this 'one weird trick'.
So there is no remotely reasonable way in which Oracle can have an effect on this issue.
[0] - http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/diff/z...
ZOL still has some very clunky usability integrations (zpool status vs spare, sudo requirements, device name instabilities etc). I'm running ZOL on production servers, and sometimes it feels like back in the day when I tried to get the first ZFS patchsets against FreeBSD7 to run on my P3 with 1.5GB RAM. Sometimes worse.
The majority of Ubuntu users will not attribute these deficiencies to the ZOL port, but to "ZFS". We will see a lot of "So $XYZ has ZFS, well, I have tried it on Ubuntu and it s".