XFS-2.5.6

XFS kernel patch

The XFS kernel patch must be applied to use XFS file systems.

Patching Linux-2.4.22 for XFS

Build an XFS enabled Linux 2.4.22 kernel with the following commands:

cd /usr/src/linux &&
make mrproper &&
bzcat ../xfs-2.4.22-all-i386.bz2 | patch -Np1 &&
make menuconfig &&
make CC=/opt/gcc-2.95.3/bin/gcc dep &&
make CC=/opt/gcc-2.95.3/bin/gcc bzImage &&
make CC=/opt/gcc-2.95.3/bin/gcc modules &&
make CC=/opt/gcc-2.95.3/bin/gcc modules_install &&
cp arch/i386/boot/bzImage /boot/vmlinuz-xfs &&
cp System.map /boot/System.map-xfs

Introduction to XFS

The XFS package contains administration and debugging tools for the XFS file system.

Installation of XFS

Install XFS by running the following commands:

./configure &&
make &&
make install

Contents

XFS contains xfs_growfs, xfs_admin, xfs_freeze, xfs_mkfile, xfs_check, xfs_bmap, xfs_rtcp, xfs_repair, xfs_db, xfs_logprint, xfs_ncheck, mkfs.xfs and fsck.xfs.

Description

xfsgrowfs

xfsgrowfs expands an XFS file system.

xfs_admin

xfs_admin changes the parameters of an XFS file system.

xfs_freeze

xfs_freeze suspends access to an XFS file system.

xfs_mkfile

xfs_mkfile creates an XFS file, padded with zeroes by default.

xfs_check

xfs_check checks XFS file system consistency.

xfs_bmap

xfs_bmap prints block mapping for an XFS file.

xfs_rtcp

xfs_rtcp copies a file to the real-time partition on an XFS file system.

xfs_repair

xfs_repair repairs corrupt or damaged XFS file systems.

xfs_db

xfs_db is used to debug an XFS file system.

xfs_logprint

xfs_logprint prints the log of an XFS file system.

xfs_ncheck

xfs_ncheck generates pathnames from inode numbers for an XFS file system.

mkfs.xfs

mkfs.xfs constructs an XFS file system.

fsck.xfs

fsck.xfs simply exits with a zero status, since XFS partitions are checked at mount time.