Obtaining XFS
XFS isn’t included in any of the stable or development kernels. So you’ll need to obtain and apply patches from the XFS web site or use CVS to get a prepatched kernel.
Using CVS to obtain a patched kernel
Since XFS is not included with any official kernel releases, CVS is by far the easiest way to obtain an XFS-ready kernel. To obtain a kernel with XFS support using CVS, execute the following commands:
#cd /usr/src#export CVSROOT=':pserver:cvs@oss.sgi.com:/cvs'#cvs login(Logging in to cvs@oss.sgi.com) CVS password:cvs#cvs -z3 checkout linux-2.4-xfs
After the cvs command completes, you will be left with the directory /usr/src/linux-2.4-xfs. The linux subdirectory contains the XFS kernel, and the cmd subdirectory contains the user-space programs needed to manage XFS partitions. Skip ahead to the section Compiling the Kernel with XFS Support for instructions on enabling XFS features.
Patching the kernel
If using CVS isn’t agreeable, you can download a patch and apply it to a clean kernel. Grab the file that corresponds to your kernel version from ftp://oss.sgi.com/projects/xfs/download/patches. There is also a patch-2.5 directory for those working with development kernels.
Decompress the patch and apply it to your kernel:
#cd /usr/src/linux-2.4.19#patch -p1 < /usr/src/xfs-2.4.19-all-i386
A list of successfully patched files is printed on the screen. If errors are reported, it’s likely that you didn’t apply the XFS patch to a clean kernel. Download a new kernel and ...
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