Patching the Kernel
JFS didn’t make it into the official kernel releases until 2.5.6, so if you want to work with a 2.4 kernel, you will have to download and apply a patch. If you’re confident using a development kernel, download the most recent 2.5 kernel and skip ahead to the next section, Configuring the kernel.
Tip
IBM JFS was accepted into the 2.4 tree with 2.4.20-pre4. So users working with stable kernels later than 2.4.20 (which, at the time of this writing, is not yet released) won’t need to go through the process of patching.
You can download a patch that matches your kernel version as well, as the most recent JFS core patch, from http://www.ibm.com/developerworks/oss/jfs/. Since I’m working with kernel 2.4.18, I downloaded both jfs-2.4.18-patch and jfs-2.4-1.0.21.tar.gz. After unpacking a clean 2.4.18 kernel, change into the source directory, apply the patch that is specific to 2.4.18, and unpack the jfs-1.0.21 archive.
#cd /usr/src/linux-2.4.18#patch -p1 < /usr/src/patches/jfs-2.4.18-patch#tar xzvf /usr/src/patches/jfs-2.4-1.0.21.tar.gz
The jfs-2.4.18-patch makes the necessary changes to the kernel configuration scripts. If no errors are encountered, the patch command outputs a list of the files that have been modified. If you encounter errors while patching, first ensure you are working with a clean kernel and then attempt to repatch.
Unpacking the file jfs-2.4-1.0.21.tar.gz creates the directories and files that comprise the JFS portions of the kernel source code. These ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access