Difference between revisions of "XFS"

From CBLFS
Jump to navigationJump to search
m (I fixed the vertical alignment in of the table in the "Contents" section.)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source (HTTP):
 
!Download Source (HTTP):
| http://mirrors.sunsite.dk/xfs/download/cmd_tars/xfsprogs-2.7.11.src.tar.gz
+
| http://mirrors.sunsite.dk/xfs/download/cmd_tars/xfsprogs_{{XFS-Version}}.tar.gz
 
|-
 
|-
 
!Download Source (FTP):
 
!Download Source (FTP):
| ftp://oss.sgi.com/projects/xfs/download/cmd_tars/xfsprogs-2.7.11.src.tar.gz
+
| ftp://oss.sgi.com/projects/xfs/download/cmd_tars/xfsprogs_{{XFS-Version}}.tar.gz
 
|-
 
|-
 
|}
 
|}
Line 14: Line 14:
  
 
The XFS package contains administration and debugging tools for the XFS file system.
 
The XFS package contains administration and debugging tools for the XFS file system.
 
+
 
== Dependencies ==
 
== Dependencies ==
  
Line 21: Line 21:
 
Compile the package:
 
Compile the package:
  
sed -i '/autoconf/d' Makefile &&
+
  autoconf &&
make DEBUG=-DNDEBUG
+
  sed -i Makefile \
 +
      -e '/autoconf/d' \
 +
      -e 's@default: $(CONFIGURE)@default:@' &&
 +
  ./configure --prefix=/ --exec-prefix=/ --sbindir=/sbin \
 +
    --bindir=/usr/sbin --libdir=/lib --libexecdir=/usr/lib \
 +
    --includedir=/usr/include --mandir=/usr/share/man \
 +
    --datadir=/usr/share &&
 +
  make DEBUG=-DNDEBUG
  
 
Install the package:
 
Install the package:
  
  make install &&
+
  make install install-dev
chmod -v 755 /lib/libhandle.so* &&
 
install -v -m755 -D libhandle/libhandle.la /usr/lib/libhandle.la &&
 
install -v -m644 libhandle/.libs/libhandle.a /usr/lib &&
 
ln -sv ../../lib/libhandle.so.1 /usr/lib/libhandle.so
 
  
 
=== Command Explanations ===
 
=== Command Explanations ===
Line 38: Line 41:
 
'''make DEBUG=-DNDEBUG''': The XFS build will fail using the default -DDEBUG flags.  
 
'''make DEBUG=-DNDEBUG''': The XFS build will fail using the default -DDEBUG flags.  
  
''OPTIMIZER''="...": Adding this parameter to the '''make''' command overrides the default optimization settings.
+
=== 32Bit ===
 +
 
 +
Compile the package:
  
'''install -v ...''': These commands install the static library and libtool archive for libhandle since '''make install''' only installs the shared library.
+
  autoconf &&
 +
  sed -i Makefile \
 +
      -e '/autoconf/d' \
 +
      -e 's@default: $(CONFIGURE)@default:@' &&
 +
  CC="gcc ${BUILD32}" ./configure --prefix=/ --exec-prefix=/ --sbindir=/sbin \
 +
    --bindir=/usr/sbin --libdir=/lib --libexecdir=/usr/lib --includedir=/usr/include \
 +
    --mandir=/usr/share/man --datadir=/usr/share &&
 +
  make DEBUG=-DNDEBUG
  
'''ln -sv ...''': This command installs a symlink that is missed by the '''make install''' command.
+
Install the package:
  
== Multilib ==
+
make install install-dev
  
=== 32Bit ===
+
=== N32 ===
 +
Compile the package:
  
'''TODO:''' Put 32Bit commands here.
+
  autoconf &&
 +
  sed -i Makefile \
 +
      -e '/autoconf/d' \
 +
      -e 's@default: $(CONFIGURE)@default:@' &&
 +
  CC="gcc ${BUILDN32}" ./configure --prefix=/ --exec-prefix=/ --sbindir=/sbin \
 +
    --bindir=/usr/sbin --libdir=/lib32 --libexecdir=/usr/lib32 --includedir=/usr/include \
 +
    --mandir=/usr/share/man --datadir=/usr/share &&
 +
  make DEBUG=-DNDEBUG
  
=== N32 ===
+
Install the package:
  
'''TODO:''' Put N32 commands here.
+
make install install-dev
  
 
=== 64Bit ===
 
=== 64Bit ===
  
'''TODO:''' Put 64Bit commands here.
+
Compile the package:
 +
 
 +
  autoconf &&
 +
  sed -i Makefile \
 +
      -e '/autoconf/d' \
 +
      -e 's@default: $(CONFIGURE)@default:@' &&
 +
  CC="gcc ${BUILD64}" ./configure --prefix=/ --exec-prefix=/ --sbindir=/sbin \
 +
    --bindir=/usr/sbin --libdir=/lib64 --libexecdir=/usr/lib64 --includedir=/usr/include \
 +
    --mandir=/usr/share/man --datadir=/usr/share &&
 +
  make DEBUG=-DNDEBUG
 +
 
 +
Install the package:
 +
 
 +
make install install-dev
  
 
= Contents =
 
= Contents =

Revision as of 22:51, 15 December 2006

Download Source (HTTP): http://mirrors.sunsite.dk/xfs/download/cmd_tars/xfsprogs_3.0.1.tar.gz
Download Source (FTP): ftp://oss.sgi.com/projects/xfs/download/cmd_tars/xfsprogs_3.0.1.tar.gz

Introduction to XFS

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

Dependencies

Non-Multilib

Compile the package:

 autoconf &&
 sed -i Makefile \
     -e '/autoconf/d' \
     -e 's@default: $(CONFIGURE)@default:@' &&
 ./configure --prefix=/ --exec-prefix=/ --sbindir=/sbin \
    --bindir=/usr/sbin --libdir=/lib --libexecdir=/usr/lib \
    --includedir=/usr/include --mandir=/usr/share/man \
    --datadir=/usr/share &&
 make DEBUG=-DNDEBUG  

Install the package:

make install install-dev

Command Explanations

sed -i '/autoconf/d' Makefile: This command disables running autoconf because it is unnecessary.

make DEBUG=-DNDEBUG: The XFS build will fail using the default -DDEBUG flags.

32Bit

Compile the package:

 autoconf &&
 sed -i Makefile \
     -e '/autoconf/d' \
     -e 's@default: $(CONFIGURE)@default:@' &&
 CC="gcc ${BUILD32}" ./configure --prefix=/ --exec-prefix=/ --sbindir=/sbin \
    --bindir=/usr/sbin --libdir=/lib --libexecdir=/usr/lib --includedir=/usr/include \
    --mandir=/usr/share/man --datadir=/usr/share &&
 make DEBUG=-DNDEBUG 

Install the package:

make install install-dev

N32

Compile the package:

 autoconf &&
 sed -i Makefile \
     -e '/autoconf/d' \
     -e 's@default: $(CONFIGURE)@default:@' &&
 CC="gcc ${BUILDN32}" ./configure --prefix=/ --exec-prefix=/ --sbindir=/sbin \
    --bindir=/usr/sbin --libdir=/lib32 --libexecdir=/usr/lib32 --includedir=/usr/include \
    --mandir=/usr/share/man --datadir=/usr/share &&
 make DEBUG=-DNDEBUG 

Install the package:

make install install-dev

64Bit

Compile the package:

 autoconf &&
 sed -i Makefile \
     -e '/autoconf/d' \
     -e 's@default: $(CONFIGURE)@default:@' &&
 CC="gcc ${BUILD64}" ./configure --prefix=/ --exec-prefix=/ --sbindir=/sbin \
    --bindir=/usr/sbin --libdir=/lib64 --libexecdir=/usr/lib64 --includedir=/usr/include \
    --mandir=/usr/share/man --datadir=/usr/share &&
 make DEBUG=-DNDEBUG 

Install the package:

make install install-dev

Contents

Installed Programs: fsck.xfs, mkfs.xfs, xfs_admin, xfs_bmap, xfs_check, xfs_copy, xfs_db, xfs_freeze, xfs_growfs, xfs_info, xfs_io, xfs_logprint, xfs_mkfile, xfs_ncheck, xfs_repair, and xfs_rtcp
Installed Libraries: libhandle.{so,a}
Installed Directory: /usr/share/doc/xfsprogs

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_check checks XFS file system consistency.
xfs_copy copies the contents of an XFS file system to one or more targets in parallel.
xfs_db is used to debug an XFS file system.
xfs_freeze suspends access to an XFS file system.
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_mkfile creates an XFS file, padded with zeroes by default.
xfs_ncheck generates pathnames from inode numbers for an XFS file system.
xfs_quota is a utility for reporting and editing various aspects of filesystem quota.
xfs_repair repairs corrupt or damaged XFS file systems.
xfs_rtcp copies a file to the real-time partition on an XFS file system.
libhandle.so contains functions to map filesystem handles to a corresponding open file descriptor for that filesystem.