How to compile ZFS only ?

Ben RUBSON ben.rubson at gmail.com
Wed Mar 22 21:47:17 UTC 2017


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 at multiplay.co.uk> wrote:
> 
> cd /usr/src
> make buildenv
> cd sys/modules/zfs/
> make
> make install
> 
> On 22/03/2017 20:57, Ben RUBSON wrote:
>> Hi,
>> 
>> I'm trying to rebuild ZFS (with some patches) without having to rebuild whole kernel.
>> 
>> What I then try :
>> # cd /usr/src/sys/modules/zfs/
>> # make
>> # cp zfs.ko /boot/kernel/ #to replace current zfs module
>> 
>> But then server does not reboot properly (/ is on ZFS).
>> 
>> If I do :
>> # cd /usr/src/
>> # make buildkernel KERNCONF=GENERIC
>> # cp /usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/zfs/zfs.ko /boot/kernel/
>> 
>> Then server correctly reboot.
>> 
>> I clearly see that zfs.ko in method 1 is slightly smaller that in method 2.
>> 
>> Am I missing something ? (of course yes, but what ? :)
>> 
>> Many thanks !
>> 
>> Best regards,
>> 
>> Ben
>> 
>> _______________________________________________
>> freebsd-fs at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-fs
>> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
> 
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"



More information about the freebsd-fs mailing list