Native ZFS Port for Linux

Employees of Lawrence Livermore National Laboratory have ported Sun’s/Oracle’s ZFS natively to Linux. Linux already had a ZFS port in userspace via FUSE, since license incompatibilities between the CDDL and GPL prevent ZFS from becoming part of the Linux kernel. This project solves the licensing issue by distributing ZFS as a separate kernel module users will have to download and build for themselves.

I’m assuming most of us are aware of the licensing issues when it comes to the CDDL and the GPL. ZFS is an awesome piece of work, but because of this, it was never ported to the Linux kernel – at least, not as part of the actual kernel. ZFS has been available as a userspace implementation via FUSE for a while now.

Main developer Brian Behlendorf has also stated that the Lawrence Livermore National Laboratory has repeatedly urged Oracle to do something about the licensing situation so that ZFS can become a part of the kernel. “We have been working on this for some time now and have been strongly urging Sun/Oracle to make a change to the licensing,” he explains, “I’m sorry to say we have not yet had any luck.”

There’s still some major work to be done, so this is not production-ready code. The ZFS Posix Layer has not been implemented yet, therefore mounting file systems is not yet possible; direct database access, however, is. Supposedly, KQ Infotech is working on this, but it has been rather quiet around those parts for a while now.

“Currently in the ZFS for Linux port the only interface available from user space is the zvol,” the project’s website reads, “The zvol allows you to create a virtual block device dataset in a zfs storage pool. While this may not immediately seem like a big deal it does open up some interesting possibilities.”

As for the ZFS FUSE implementation, Behlendorf hopes that they can share the same codebase. “In the long term I would love to support both a native in-kernel posix layer and a fuse based posix layer,” he explains, “The way the code is structured you actually build the same ZFS code once in the kernel as a set of modules and a second time as a set of shared libraries. The in-kernel version is used by Lustre, the ZVOL, and will eventually be used by the native posix layer.”

This sounds like good news, but a lot of work still needs to be done. By the way, I hope I got all the details right on this one – this is hardly my field of expertise. Feel free to correct me.

94 Comments

  1. 2010-06-07 11:20 am
    • 2010-06-07 11:37 am
      • 2010-06-07 12:52 pm
        • 2010-06-07 3:53 pm
        • 2010-06-07 6:58 pm
          • 2010-06-07 11:15 pm
    • 2010-06-07 12:56 pm
      • 2010-06-07 6:39 pm
      • 2010-06-07 9:23 pm
        • 2010-06-07 11:45 pm
    • 2010-06-08 3:59 am
    • 2010-06-08 7:12 pm
  2. 2010-06-07 11:46 am
    • 2010-06-07 11:56 am
      • 2010-06-07 12:13 pm
        • 2010-06-07 12:32 pm
          • 2010-06-07 12:45 pm
    • 2010-06-07 12:07 pm
      • 2010-06-07 12:14 pm
    • 2010-06-07 2:36 pm
    • 2010-06-07 11:42 pm
  3. 2010-06-07 11:48 am
    • 2010-06-07 11:55 am
      • 2010-06-07 7:10 pm
        • 2010-06-07 8:41 pm
          • 2010-06-08 7:33 am
          • 2010-06-08 10:29 am
          • 2010-06-12 11:42 pm
        • 2010-06-07 9:26 pm
        • 2010-06-08 4:03 am
    • 2010-06-07 12:03 pm
      • 2010-06-07 1:22 pm
        • 2010-06-07 1:34 pm
          • 2010-06-07 6:18 pm
          • 2010-06-07 7:18 pm
          • 2010-06-07 8:10 pm
          • 2010-06-07 8:32 pm
          • 2010-06-07 9:37 pm
          • 2010-06-07 8:15 pm
        • 2010-06-09 5:24 am
      • 2010-06-07 1:24 pm
        • 2010-06-07 4:48 pm
    • 2010-06-07 7:29 pm
      • 2010-06-07 11:08 pm
        • 2010-06-07 11:24 pm
      • 2010-06-09 1:25 pm
        • 2010-06-09 2:46 pm
          • 2010-06-09 5:31 pm
          • 2010-06-09 11:00 pm
          • 2010-06-10 12:05 am
          • 2010-06-10 1:51 am
        • 2010-06-09 7:16 pm
          • 2010-06-09 8:00 pm
          • 2010-06-10 10:04 am
  4. 2010-06-07 11:58 am
    • 2010-06-07 12:06 pm
      • 2010-06-07 1:00 pm
      • 2010-06-08 4:07 am
  5. 2010-06-07 5:06 pm
    • 2010-06-07 6:56 pm
  6. 2010-06-07 5:25 pm
    • 2010-06-08 2:11 am
      • 2010-06-08 8:05 am
  7. 2010-06-07 7:08 pm
    • 2010-06-07 8:04 pm
    • 2010-06-07 8:08 pm
      • 2010-06-07 8:22 pm
        • 2010-06-07 9:24 pm
          • 2010-06-08 7:33 am
      • 2010-06-07 8:22 pm
      • 2010-06-07 8:33 pm
        • 2010-06-07 9:25 pm
          • 2010-06-07 11:32 pm
          • 2010-06-08 2:13 am
      • 2010-06-07 9:05 pm
        • 2010-06-07 9:12 pm
        • 2010-06-07 9:41 pm
      • 2010-06-07 11:15 pm
  8. 2010-06-07 8:15 pm
  9. 2010-06-07 9:08 pm
    • 2010-06-07 11:38 pm
    • 2010-06-09 5:21 pm
  10. 2010-06-07 10:34 pm
    • 2010-06-08 8:49 am
      • 2010-06-08 7:41 pm
        • 2010-06-09 12:22 pm
          • 2010-06-09 8:51 pm
          • 2010-06-10 12:53 pm
          • 2010-06-11 7:17 am
  11. 2010-06-09 1:59 am
  12. 2010-06-09 2:53 pm