Port of ZFSOnLinux solution for illumos-gate issue #2663 to FreeBSD

Richard Yao ryao at gentoo.org
Wed Nov 14 05:21:13 UTC 2012


Dear Everyone,

I am the Gentoo Linux ZFS maintainer as well as part of the Gentoo BSD
team. I have attached a patch that ports the ZFSOnLinux solution of
illumos-gate issue #2663 to FreeBSD-HEAD. It should also apply against
stable, with fuzz. This permits users to avoid fiddling with gnop when
making pools on drives that lie about their sector sizes.

There are a few things to note about this patch:

1. This does not apply to `zpool add`, `zpool attach` and `zpool
replace`. A separate patch for that is being reviewed in ZFSOnLinux at
this time. I will port it separately after it is committed.

2. This has not been sent to Illumos upstream. As a Gentoo BSD team
developer, I am in a much better position to send code to FreeBSD than
to send code to Illumos. I expect that Martin Matuska will port this
change to Illumos after it is accepted into FreeBSD, so I assume that
this is okay.

3. ZFSOnLinux enforces the CDDL's attribution requirement by relying on
commit messages and metadata. FreeBSD and Illumos satisfy it by adding
copyright notices to files. I have tried to translate the ZFS
attribution policy by adding appropriate copyright notices for
non-trivial changes. I would expect this to pass review by the Gentoo
Foundation members that review licensing for Gentoo, so I assume that
this is okay.

I have discussed committing this patch to FreeBSD with Eitan Adler. He
requires one of the FreeBSD Filesystem developers to acknowledge it as
being appropriate for the tree before he will commit it.

Yours truly,
Richard Yao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-ashift-property-to-zpool-create.patch
Type: text/x-patch
Size: 12252 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20121114/6b643a45/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20121114/6b643a45/attachment.sig>


More information about the freebsd-fs mailing list