From owner-freebsd-fs@freebsd.org Wed Mar 22 21:47:16 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F1D10D182A8 for ; Wed, 22 Mar 2017 21:47:16 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wr0-x22c.google.com (mail-wr0-x22c.google.com [IPv6:2a00:1450:400c:c0c::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 863081A23 for ; Wed, 22 Mar 2017 21:47:16 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wr0-x22c.google.com with SMTP id u108so136219090wrb.3 for ; Wed, 22 Mar 2017 14:47:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=qaRFXH+4uEh7mhnAs2u09kmoCazIXsvyxiUACPsryqA=; b=u4dSCROAz3TPyBMxPaG4xSLXUVicDLPw2LyYER+//+fgWvZbFn0MQ6QYxA9Elp6Lm1 TcMNd3ODej3azgYYGCVavTQ9XkugCxjIMRc/LrN4UFxkK4JWADWlo3EgOL6XfcYArUKY U6guC1zgR0PPanwto7iVz3yepbXQRa4lOp5wwa90ypgCSaaCAfm0pNpVzmSKxuDOcgMA WKUkoi3NhfqCyWHMMiCogrCU6XsXLDlcEBAZQudmCJEUyOA4z2xzwkA3QrDEA9JoxjXr nbYnR1FWRqmeFA3GKptF7mp6+JhvDMOIFh/awYua+XCncejsrv6c+QwnvCFQnznroiTe FFAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=qaRFXH+4uEh7mhnAs2u09kmoCazIXsvyxiUACPsryqA=; b=dVeBobWuDE0XIX7utvREgZdlvX4xmpz2ZBa/W/jK/qKdz5au4mXLzxM9nzNB+8Droc b4nkTUX5/dHm8qJHnlDH2OOaIxz1+lo/gpt8DD3ZoaPdHfoDbNjTIBQgPyA6XA+58W23 CrmLuq4sh6v5DrrrPpwcGDx6FSfq670R0jaqUd4wq5WT9Qb8fut3rdp8N+tf6PM/9YCQ DkkInUeSNMVrIygGxBezue9YtIYTxl8sLPQBs/EP86BDGZDvMsl+umcCj4HP3kZE56e/ SGC7rYR8HKU2/3ahs8z+I5skD4wGml8Fno7Ojqz2tqAoZ67Q1BEm00IvkGzGYC+k4Qbm x3YQ== X-Gm-Message-State: AFeK/H3tri5fPQ331LV6n6YDq97NQslB/gskr0ZkDYFGRXkXNQCOpQPOJnn+stcCX4yKQQ== X-Received: by 10.223.177.148 with SMTP id q20mr38522043wra.154.1490219234696; Wed, 22 Mar 2017 14:47:14 -0700 (PDT) Received: from ben-1.home (LFbn-1-7159-4.w90-116.abo.wanadoo.fr. [90.116.90.4]) by smtp.gmail.com with ESMTPSA id z79sm1962346wrc.2.2017.03.22.14.47.14 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Mar 2017 14:47:14 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: How to compile ZFS only ? From: Ben RUBSON In-Reply-To: <4a7293c4-3a13-f865-bfb7-4d40581cfe3b@multiplay.co.uk> Date: Wed, 22 Mar 2017 22:47:13 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <34FDCEEF-99A8-4925-8BFA-BCB3CE0143D8@gmail.com> References: <40633FF9-242F-48E1-8CE6-ADE4AC3C5C89@gmail.com> <4a7293c4-3a13-f865-bfb7-4d40581cfe3b@multiplay.co.uk> To: Freebsd fs X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Mar 2017 21:47:17 -0000 Thank you for your answer Steven. Unfortunately it did not help, same behaviour : Module with you method has the same smaller size, 2323000 bytes vs = 2500544. (I then did not try to boot with it) Ben > On 22 Mar 2017, at 22:09, Steven Hartland = wrote: >=20 > cd /usr/src > make buildenv > cd sys/modules/zfs/ > make > make install >=20 > On 22/03/2017 20:57, Ben RUBSON wrote: >> Hi, >>=20 >> I'm trying to rebuild ZFS (with some patches) without having to = rebuild whole kernel. >>=20 >> What I then try : >> # cd /usr/src/sys/modules/zfs/ >> # make >> # cp zfs.ko /boot/kernel/ #to replace current zfs module >>=20 >> But then server does not reboot properly (/ is on ZFS). >>=20 >> If I do : >> # cd /usr/src/ >> # make buildkernel KERNCONF=3DGENERIC >> # cp = /usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/zfs/zfs.ko = /boot/kernel/ >>=20 >> Then server correctly reboot. >>=20 >> I clearly see that zfs.ko in method 1 is slightly smaller that in = method 2. >>=20 >> Am I missing something ? (of course yes, but what ? :) >>=20 >> Many thanks ! >>=20 >> Best regards, >>=20 >> Ben >>=20 >> _______________________________________________ >> freebsd-fs@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-fs >> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >=20 > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"