Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2017 22:47:13 +0100
From:      Ben RUBSON <ben.rubson@gmail.com>
To:        Freebsd fs <freebsd-fs@freebsd.org>
Subject:   Re: How to compile ZFS only ?
Message-ID:  <34FDCEEF-99A8-4925-8BFA-BCB3CE0143D8@gmail.com>
In-Reply-To: <4a7293c4-3a13-f865-bfb7-4d40581cfe3b@multiplay.co.uk>
References:  <40633FF9-242F-48E1-8CE6-ADE4AC3C5C89@gmail.com> <4a7293c4-3a13-f865-bfb7-4d40581cfe3b@multiplay.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <killing@multiplay.co.uk> =
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"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34FDCEEF-99A8-4925-8BFA-BCB3CE0143D8>