From owner-freebsd-fs@FreeBSD.ORG Wed Nov 14 05:34:14 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0CB19DC6; Wed, 14 Nov 2012 05:34:14 +0000 (UTC) (envelope-from prvs=166515a72b=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 381818FC0C; Wed, 14 Nov 2012 05:34:12 +0000 (UTC) Received: from r2d2 ([188.220.16.49]) by mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (MDaemon PRO v10.0.4) with ESMTP id md50001052098.msg; Wed, 14 Nov 2012 05:34:03 +0000 X-Spam-Processed: mail1.multiplay.co.uk, Wed, 14 Nov 2012 05:34:03 +0000 (not processed: message from valid local sender) X-MDRemoteIP: 188.220.16.49 X-Return-Path: prvs=166515a72b=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk Message-ID: <3AD8FAE474C24860B57C75DEBE431126@multiplay.co.uk> From: "Steven Hartland" To: "Richard Yao" , References: <50A329A4.9090304@gentoo.org> Subject: Re: Port of ZFSOnLinux solution for illumos-gate issue #2663 to FreeBSD Date: Wed, 14 Nov 2012 05:34:02 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Cc: Eitan Adler X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 05:34:14 -0000 Useful stuff, you might be interested in the follow:- Teach ZFS about geom stripe size so zpools are created with optimum ashift http://www.freebsd.org/cgi/query-pr.cgi?pr=173115 I've got an updated patch which allows the min ashift to be configured. It should be noted that the max working ashift appears to be 17 due the way labels use zio_read_phys with offset. Regards Steve ----- Original Message ----- From: "Richard Yao" To: Cc: "Eitan Adler" Sent: Wednesday, November 14, 2012 5:18 AM Subject: Port of ZFSOnLinux solution for illumos-gate issue #2663 to FreeBSD 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 ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.