118 lines
2.4 KiB
HTML
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"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
filefrag - report on file fragmentation
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>filefrag</B>
|
|
|
|
[
|
|
<B>-b</B><I>blocksize</I>
|
|
|
|
]
|
|
[
|
|
<B>-BeksvxX</B>
|
|
|
|
]
|
|
[
|
|
<I>files...</I>
|
|
|
|
]
|
|
<A NAME="lbAD"> </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"> </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"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
<B>filefrag</B>
|
|
|
|
was written by Theodore Ts'o <<A HREF="mailto:tytso@mit.edu">tytso@mit.edu</A>>.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </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>
|