[DRBD-user] [patch] in-kernel builds

Lars Ellenberg Lars.Ellenberg at linbit.com
Tue Apr 20 14:21:00 CEST 2004

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


/ 2004-04-20 13:45:26 +0200
\ Lars Ellenberg:
> 
> Ok, just now committed a slightly improved patch into CVS.
> 
> * new make target: kernel-patch
>   use like "make kernel-patch KDIR=/usr/src/linux-2.6.5-something"
>   generates a patch-linux-*-drbd-* in the toplevel directory, you can
>   then verify and apply it to your kernel source.
> 
> * or use scripts/patch-kernel directly,
>   usage: patch-kernel /usr/src/linux-2.6.5-something /usr/src/drbd/
>   (incremental) diff goes to stdout
> 
> * adds DRBD to the block devices menu of the kernel konfig
>   for standard and UML builds
>   currently only works for 2.6. kernels ...
>   it should be fairly easy to adopt to the Configure.in syntax of 2.4,
>   just do it, and we'll include it.

ah, yes:
if you build it into the kernel (not as module),
you can access the "module patameter" as kernel boot parameter:
drbd.minor_count=42
defaults to 8 for in kernel builds [instead of 2 for module builds]

And a hint for the redhat and whatnot users:
maybe you need to modify drbd_config.h *before* generating the patch.
best you try to build out-of-kernel-tree first, and if that works as
expected, generate the patch for the in-kernel-tree build.

actually, the special defines of drbd_config.h should probably be mapped
to some CONFIG_*DRBD* options...

	Lars Ellenberg



More information about the drbd-user mailing list