man-pages/man8/filefrag.8.html
2021-03-31 01:06:50 +01:00

118 lines
2.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of FILEFRAG</TITLE>
</HEAD><BODY>
<H1>FILEFRAG</H1>
Section: Maintenance Commands (8)<BR>Updated: January 2020<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
filefrag - report on file fragmentation
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>filefrag</B>
[
<B>-b</B><I>blocksize</I>
]
[
<B>-BeksvxX</B>
]
[
<I>files...</I>
]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>filefrag</B>
reports on how badly fragmented a particular file might be. It makes
allowances for indirect blocks for ext2 and ext3 filesystems, but can be
used on files for any filesystem.
<P>
The
<B>filefrag</B>
program initially attempts to get the
extent information using FIEMAP ioctl which is more efficient and faster.
If FIEMAP is not supported then filefrag will fall back to using FIBMAP.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>-B</B>
<DD>
Force the use of the older FIBMAP ioctl instead of the FIEMAP ioctl for
testing purposes.
<DT id="2"><B>-b</B><I>blocksize</I>
<DD>
Use
<I>blocksize</I>
in bytes for output instead of the filesystem blocksize.
For compatibility with earlier versions of
<B>filefrag</B>,
if
<I>blocksize</I>
is unspecified it defaults to 1024 bytes.
<DT id="3"><B>-e</B>
<DD>
Print output in extent format, even for block-mapped files.
<DT id="4"><B>-k</B>
<DD>
Use 1024-byte blocksize for output (identical to '-b 1024').
<DT id="5"><B>-s</B>
<DD>
Sync the file before requesting the mapping.
<DT id="6"><B>-v</B>
<DD>
Be verbose when checking for file fragmentation.
<DT id="7"><B>-x</B>
<DD>
Display mapping of extended attributes.
<DT id="8"><B>-X</B>
<DD>
Display extent block numbers in hexadecimal format.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>AUTHOR</H2>
<B>filefrag</B>
was written by Theodore Ts'o &lt;<A HREF="mailto:tytso@mit.edu">tytso@mit.edu</A>&gt;.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="9"><A HREF="#lbAB">NAME</A><DD>
<DT id="10"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="11"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="12"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="13"><A HREF="#lbAF">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:12 GMT, March 31, 2021
</BODY>
</HTML>