Skip to content

Ship LINBIT 9.2.19 cocci_cache for offline KMM builds - #4

Closed
malayparida2000 wants to merge 3 commits into
red-hat-storage:release-4.22from
malayparida2000:vendor-cocci-cache-9.2.18
Closed

Ship LINBIT 9.2.19 cocci_cache for offline KMM builds#4
malayparida2000 wants to merge 3 commits into
red-hat-storage:release-4.22from
malayparida2000:vendor-cocci-cache-9.2.18

Conversation

@malayparida2000

@malayparida2000 malayparida2000 commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Vendor pre-generated drbd-kernel-compat/cocci_cache/ from the official LINBIT drbd-9.2.19 release tarball (63 compat.patch entries).
  • Stop ignoring cocci_cache/* in .gitignore so the cache is part of the git source consumed by the build.
  • Fixes offline/disconnected ODF DRBD kmod builds (customers no longer need SPAAS or local coccinelle when the node kernel matches a cached entry.

Why

make tarball already packs whatever is under cocci_cache/ via .filelist. 4.22 builds from git with empty cocci_cache, so disconnected builds fail.

Maintenance

When bumping DRBD, refresh from the matching LINBIT release.
Run the below command to replace the vendored cache, cleans up the download, and prints the patch count . Then commit and PR to the matching release branch.

VER=9.2.19

curl -fsSLO "https://pkg.linbit.com/downloads/drbd/9/drbd-${VER}.tar.gz" && \
tar -xzf "drbd-${VER}.tar.gz" && \
rm -rf drbd/drbd-kernel-compat/cocci_cache && \
cp -a "drbd-${VER}/drbd/drbd-kernel-compat/cocci_cache" drbd/drbd-kernel-compat/ && \
rm -rf "drbd-${VER}" "drbd-${VER}.tar.gz" && \
find drbd/drbd-kernel-compat/cocci_cache -name compat.patch | wc -l

@malayparida2000
malayparida2000 force-pushed the vendor-cocci-cache-9.2.18 branch 2 times, most recently from 5f06631 to 52d7137 Compare July 20, 2026 09:48
@malayparida2000 malayparida2000 changed the title Vendor LINBIT 9.2.18 cocci_cache for offline KMM builds Ship LINBIT 9.2.18 cocci_cache for offline KMM builds Jul 20, 2026
@malayparida2000 malayparida2000 changed the title Ship LINBIT 9.2.18 cocci_cache for offline KMM builds Ship LINBIT 9.2.19 cocci_cache for offline KMM builds Jul 20, 2026
Ship pre-generated compat.h/compat.patch entries from the official
LINBIT drbd-9.2.19 release tarball so disconnected clusters can build
DRBD kmods without SPAAS or a local coccinelle install.

make tarball already includes cocci_cache via .filelist; previously the
directory was empty because git builds never ran LINBIT's internal
collect_compat_h.sh. Stop ignoring cocci_cache contents so the vendored
cache is part of the source consumed by the image build.

Source: https://pkg.linbit.com/downloads/drbd/9/drbd-9.2.19.tar.gz
(63 compat.patch entries). Refresh this tree from the matching LINBIT
release when bumping DRBD.

Signed-off-by: Malay Kumar Parida <mparida@redhat.com>
@malayparida2000
malayparida2000 force-pushed the vendor-cocci-cache-9.2.18 branch from 52d7137 to 3226dc4 Compare July 20, 2026 09:49
malayparida2000 and others added 2 commits July 20, 2026 18:49
Replace unpublished 6998d84e with 32c2e607 (same bit-9
RECONCILE_RECONNECT change) so git submodule update works in CI.

Signed-off-by: Malay Kumar Parida <mparida@redhat.com>
Bump the drbd-headers submodule to remove the split genetlink compat
headers for older kernels.

Also update build file lists and retarget compat patches that
referenced the deleted files.
@malayparida2000
malayparida2000 force-pushed the vendor-cocci-cache-9.2.18 branch from 9a6036b to b30dcb9 Compare July 20, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants