Compiling HFS+ kernel driver for RHEL 9.3

Posted on

Due to certain video cameras that record in HFS+, I typically have the requirement to also include the hfsplus driver on top of the RHEL kernel package, which I then add using DKMS. With RHEL 9.3 I noticed the filesystem backports got more elaborate and which commits to backport for the HFS+ driver has become less obvious. This is a short summary of the procedure that I found.

The following two commits need to be applied fully to get in sync with the backported filesystem code (append .patch to the end to obtain the raw patch file from GitHub):

https://github.com/torvalds/linux/commit/07a31f728d7a9a3cdc5aa1bdf9e6a6d7524d93ad

https://github.com/torvalds/linux/commit/7ffce3d94110065792fdd1ee807c4fae18d2c2c3

From the following commit, only the one line change in fs/hfsplus/inode.c is needed (change &folio->page into folio):

https://github.com/torvalds/linux/commit/68189fef88c7d02eb92e038be3d6428ebd0d2945

Responses