[DRBD-user] drbd-9.0.20-1

Roland Kammerer roland.kammerer at linbit.com
Thu Oct 10 15:57:37 CEST 2019


On Thu, Oct 10, 2019 at 01:19:53PM +0200, Philipp Reisner wrote:
> Hi,
> 
> With this release the big news is the new way we deal with compatibility
> for older linux kernels. It used to be a mechanism based of #IFDEFs that
> tainted the main drbd code more and more.
> Now the DRBD code is clean Linux-upstream compatible code. In order that
> you can compile it against older and distribution kernels the build
> process automatically applies a compat-patch. These compat-patches are
> computed using coccinelle/spatch semantic patches. See here for more
> information:
> 
> https://www.linbit.com/en/how-to-make-drbd-compatible-to-the-linux-kernel/

Some additional hints/tl;tr:

1. It tries to find a patch in the local cache (shipped in the tar
ball).

2. If not in cache, try to generate with spatch. You need to have at
least version 1.0.8 (latest release, as of about 2 weeks ago). Earlier
version might generate patches, put they might be invalid! AFAIK no
distri packaged 1.0.8 so far.

3. If spatch is not installed, it fetches the patch from a web service.
For that you need access to the web, and you need `curl`. I forget to
add it as explicit dependency for the dkms. Most systems should have it
- PVE is a famous exception - or the build process will complain anyways.

Best, rck


More information about the drbd-user mailing list