1

Topic: Please add ZFS Support - Need it for Solaris, OpenSolaris and FreeBSD

Hello

Please add support (at the very least, create and read capabilities) to GParted.

Here is some information about ZFS;

http://opensolaris.org/os/community/zfs/
http://en.wikipedia.org/wiki/ZFS

Thanks in advance,

Panarchy

2 (edited by gedakc 2008-11-05 17:57:32)

Re: Please add ZFS Support - Need it for Solaris, OpenSolaris and FreeBSD

From reading the wikipedia link, it would appear that SUN's licensing of ZFS is incompatible with the GPL v2.  Hence direct support for ZFS is not currently present in the GNU/Linux kernel.  Since both GParted and GParted Live are distributed under the GPL, it would appear that licensing is a road block.

wikipedia wrote:

Porting ZFS to Linux is complicated by the fact that the GNU General Public License, which governs the Linux kernel, prohibits linking with code under certain licenses, such as CDDL, the license ZFS is released under.

3

Re: Please add ZFS Support - Need it for Solaris, OpenSolaris and FreeBSD

Hello

How about ZFS Fuse?

Panarchy

PS: http://zfs-on-fuse.blogspot.com/

4

Re: Please add ZFS Support - Need it for Solaris, OpenSolaris and FreeBSD

If for the moment we ignore the licensing, there are several challenges to be addressed such as:
- How to detect that a file system is ZFS?
- Do GNU/Linux command line tools exist to create the file system?

5

Re: Please add ZFS Support - Need it for Solaris, OpenSolaris and FreeBSD

http://www.linuxworld.com/news/2007/061 … linux.html

I think they do....

Also you can use the official one, under the CDDL license.

Panarchy

6

Re: Please add ZFS Support - Need it for Solaris, OpenSolaris and FreeBSD

Hello Panarchy,

I have read through the posted links, but have not observed how to create a zfs file system from GNU/Linux.  If you could provide how this is done that would be much appreciated.

7 (edited by Panarchy 2008-11-08 05:20:13)

Re: Please add ZFS Support - Need it for Solaris, OpenSolaris and FreeBSD

http://www.wizy.org/wiki/ZFS_on_FUSE

EDIT: Just read your reply. Okay, I'll do some research. I'll get back to you soon.

8

Re: Please add ZFS Support - Need it for Solaris, OpenSolaris and FreeBSD

There is no licensing problem to include support for calling external tools if they are available.

And according to http://www.wizy.org/mercurial/zfs-fuse/ … 9cd/STATUS it should be possible to create filesystems.  They seem to use the original CDDL-licensed tools (maybe with some changes), so I guess a tutorial for those on another OS will work with zfs-fuse too.

9

Re: Please add ZFS Support - Need it for Solaris, OpenSolaris and FreeBSD

^Ah, thanks. That was what I was looking for. Could only find the Russian one;

http://translate.google.com/translate?s … 239.1.aspx

Panarchy

PS: So will this be implemented into gparted now?

10 (edited by gedakc 2008-11-09 19:12:41)

Re: Please add ZFS Support - Need it for Solaris, OpenSolaris and FreeBSD

Please forgive me if I seem to be repeating my question, but I still do not know how to create a ZFS file system using zfs-fuse.

From what I understand, FUSE provides the ability to access file systems from user space (i.e., you don't have to be root to mount or unmount them).  Hence an unprivileged user would be able to mount an existing ZFS file system using zfs-fuse, and then list the files on the zfs file system using the "ls" command.

My question is what steps would I take to create a ZFS file system?
Is there a command such as "mkfs.zfs" or something that I am missing?

Your help outlining the required steps is appreciated.

11

Re: Please add ZFS Support - Need it for Solaris, OpenSolaris and FreeBSD

Hi

Sorry for the late reply.

Did some reading, if you could install zpool & zfs onto the liveCD, then partitions could be created the same way they are on OpenSolaris and FreeBSD.

So please do this.

Thanks in advance,

Panarchy

12

Re: Please add ZFS Support - Need it for Solaris, OpenSolaris and FreeBSD

Panarchy wrote:

Hi

Sorry for the late reply.

Did some reading, if you could install zpool & zfs onto the liveCD, then partitions could be created the same way they are on OpenSolaris and FreeBSD.

So please do this.

Thanks in advance,

Panarchy

Yes with zfs-fuse you can look for partition labels, etc. - would love to have it supported in gparted. eg you can look for all zfs accessable volumes/drives/partitions with zpool, and it will tell you what file systems there are, and what the make-up is:

# zpool import
  pool: small
    id: 14084815589084030700
 state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:

    small       ONLINE
      sda3      ONLINE

Or if you wanted to make a zfs file system

# zpool create small /dev/sda3

13

Re: Please add ZFS Support - Need it for Solaris, OpenSolaris and FreeBSD

Recently a user asked for ZFS support over IRC.  ZFS is a volume manager and a file system in one.  This is nothing like the model GParted has of one file system to one block device.  This makes support VERY complicated.

We can add support for GParted to recognise ZFS though.  Bug raised to track this Bug 752862 - Add recognition of ZFS