From owner-freebsd-current@FreeBSD.ORG Tue Nov 17 16:01:39 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF7C8106566B for ; Tue, 17 Nov 2009 16:01:39 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-yw0-f178.google.com (mail-yw0-f178.google.com [209.85.211.178]) by mx1.freebsd.org (Postfix) with ESMTP id 771EC8FC17 for ; Tue, 17 Nov 2009 16:01:39 +0000 (UTC) Received: by ywh8 with SMTP id 8so133294ywh.3 for ; Tue, 17 Nov 2009 08:01:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.101.179.24 with SMTP id g24mr1602849anp.62.1258471965131; Tue, 17 Nov 2009 07:32:45 -0800 (PST) In-Reply-To: References: <200911171017.58140.jhb@freebsd.org> Date: Tue, 17 Nov 2009 16:32:45 +0100 Message-ID: <367b2c980911170732n2eeac045l572aec6fb869eadc@mail.gmail.com> From: Olivier Smedts To: Thomas Backman Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: current@freebsd.org Subject: Re: [PATCH] Build a separate ZFS-enabled loader.zfs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Nov 2009 16:01:39 -0000 2009/11/17 Thomas Backman : > On Nov 17, 2009, at 4:17 PM, John Baldwin wrote: > >> This patch is a workaround to enabling ZFS support by default in the boo= t >> loader. =A0It enables building a loader.zfs which is a ZFS-enabled loade= r and >> changing zfsboot and gptzfsboot to use /boot/loader.zfs instead >> of /boot/loader. =A0I have only tested that things built ok, I have not >> boot-tested it as I don't have ZFS setup anywhere. =A0The patch is avail= able at >> http://www.FreeBSD.org/~jhb/loader.zfs/. =A0You will also need to copy >> the 'loader.zfs/Makefile' file from that URL into a new >> sys/boot/i386/loader.zfs directory after applying the patch. Great you made it so fast, I'll try it this evening (4PM here). Why not call it "zfsloader" (vs "loader", like "zfsboot" vs "boot") ? Sorry if I'm bikeshedding... > If I may ask (and sorry for my ignorance, but): what problem does this wo= rkaround solve? I think the problem is not about having something built by default (like zfs.ko) but to have it loaded in memory. A separate loader would solve that. Cheers, Olivier > Isn't the whole problem with ZFS loaders the license, and because of the = licence, that a ZFS-capable loader isn't built by default? > In other words: Why not use LOADER_ZFS_SUPPORT as long as you have to cho= ose between setting an option or using a patch? Neither works out of the bo= x, so you might as well pick the solution that already exists, no patching = involved. > I can only assume I'm missing something vital. :) > > (Please note: Makefiles aren't my strongest suite; I tried to figure the = answer out by reading the patch, but couldn't. I wrote my first own Makefil= e, ~15 lines, this weekend.) > > Regards, > Thomas_______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " > --=20 Olivier Smedts _ ASCII ribbon campaign ( ) e-mail: olivier@gid0.org - against HTML email & vCards X www: http://www.gid0.org - against proprietary attachments / \ "Il y a seulement 10 sortes de gens dans le monde : ceux qui comprennent le binaire, et ceux qui ne le comprennent pas."