xfsprogs-7.1.1

#### Beyond Linux® From Scratch (systemd Edition) - Version r13.1-84

### Chapter 5. File Systems and Disk Management

- Prev

  sshfs-3.7.6

- Next

  efivar-39

- Up
- Home

# xfsprogs-7.1.1

## Introduction to xfsprogs

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

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

- Download (HTTP): https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-7.1.1.tar.xz

- Download MD5 sum: befa97b62b635a1817db666806d40411

- Download size: 1.5 MB

- Estimated disk space required: 74 MB

- Estimated build time: 0.3 SBU (Using parallelism=4)

### xfsprogs Dependencies

#### Required

inih-62 and liburcu-0.15.6

#### Optional

ICU-78.3 (for unicode name scanning in xfs_scrub)

## Kernel Configuration

Enable the following options in the kernel configuration and recompile the kernel:

    File systems --->
      <*/M> XFS filesystem support                                          [XFS_FS]

## Installation of xfsprogs

Install xfsprogs by running the following commands:

    make DEBUG=-DNDEBUG     \
         INSTALL_USER=root  \
         INSTALL_GROUP=root \
         LOCAL_CONFIGURE_OPTIONS="--localstatedir=/var"

This package does not come with a test suite.

Now, as the `root` user:

    make PKG_DOC_DIR=/usr/share/doc/xfsprogs-7.1.1 install     &&
    make PKG_DOC_DIR=/usr/share/doc/xfsprogs-7.1.1 install-dev &&

    rm -rfv /usr/lib/libhandle.{a,la}

## Command Explanations

`DEBUG=-DNDEBUG`: Turns off debugging symbols.

`INSTALL_USER=root` `INSTALL_GROUP=root`: This sets the owner and group of the installed files.

`LOCAL_CONFIGURE_OPTIONS="--localstatedir=/var"`: This sets the state directory to /var, preventing /usr/var from being created.

`OPTIMIZER="..."`: Adding this parameter to the end of the make command overrides the default optimization settings.

## Contents

Installed Programs: fsck.xfs, mkfs.xfs, xfs_admin, xfs_bmap, xfs_copy, xfs_db, xfs_estimate, xfs_freeze, xfs_fsr, xfs_growfs, xfs_info, xfs_io, xfs_logprint, xfs_mdrestore, xfs_metadump, xfs_mkfile, xfs_ncheck, xfs_property, xfs_protofile, xfs_quota, xfs_repair, xfs_rtcp, xfs_scrub, xfs_scrub_all, and xfs_spaceman
Installed Libraries: libhandle.so
Installed Directories: /usr/include/xfs, /usr/lib/xfsprogs, /usr/share/xfsprogs, and /usr/share/doc/xfsprogs-7.1.1

### Short Descriptions

fsck.xfs | simply exits with a zero status, since XFS partitions are checked at mount time
mkfs.xfs | constructs an XFS file system
xfs_admin | changes the parameters of an XFS file system
xfs_bmap | prints block mapping for an XFS file
xfs_copy | copies the contents of an XFS file system to one or more targets in parallel
xfs_estimate | for each directory argument, estimates the space that directory would take if it were copied to an XFS filesystem (does not cross mount points)
xfs_db | is used to debug an XFS file system
xfs_freeze | suspends access to an XFS file system
xfs_fsr | applicable only to XFS filesystems, improves the organization of mounted filesystems, the reorganization algorithm operates on one file at a time, compacting or otherwise improving the layout of the file extents (contiguous blocks of file data)
xfs_growfs | expands an XFS file system
xfs_info | is equivalent to invoking xfs_growfs, but specifying that no change to the file system is to be made
xfs_io | is a debugging tool like xfs_db, but is aimed at examining the regular file I/O path rather than the raw XFS volume itself
xfs_logprint | prints the log of an XFS file system
xfs_mdrestore | restores an XFS metadump image to a filesystem image
xfs_metadump | copies XFS filesystem metadata to a file
xfs_mkfile | creates an XFS file, padded with zeroes by default
xfs_ncheck | generates pathnames from inode numbers for an XFS file system
xfs_property | examines and edits properties about a XFS filesystem
xfs_protofile | creates a protofile for use with mkfs.xfs
xfs_quota | is a utility for reporting and editing various aspects of filesystem quotas
xfs_repair | repairs corrupt or damaged XFS file systems
xfs_rtcp | copies a file to the real-time partition on an XFS file system
xfs_scrub | checks and repairs the contents of a mounted XFS file system
xfs_scrub_all | scrubs all mounted XFS file systems
xfs_spaceman | reports and controls free space usage in an XFS file system
`libhandle.so` | contains XFS-specific functions that provide a way to perform certain filesystem operations without using a file descriptor to access filesystem objects

- Prev

  sshfs-3.7.6

- Next

  efivar-39

- Up
- Home