Blame misc/filefrag.8.in

Packit a62e42
.\" -*- nroff -*-
Packit a62e42
.TH FILEFRAG 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
Packit a62e42
.SH NAME
Packit a62e42
filefrag \- report on file fragmentation
Packit a62e42
.SH SYNOPSIS
Packit a62e42
.B filefrag
Packit a62e42
[
Packit a62e42
.BI \-b blocksize
Packit a62e42
]
Packit a62e42
[
Packit a62e42
.B \-BeksvxX
Packit a62e42
]
Packit a62e42
[
Packit a62e42
.I files...
Packit a62e42
]
Packit a62e42
.SH DESCRIPTION
Packit a62e42
.B filefrag
Packit a62e42
reports on how badly fragmented a particular file might be.  It makes
Packit a62e42
allowances for indirect blocks for ext2 and ext3 filesystems, but can be
Packit a62e42
used on files for any filesystem.
Packit a62e42
.PP
Packit a62e42
The
Packit a62e42
.B filefrag
Packit a62e42
program initially attempts to get the
Packit a62e42
extent information using FIEMAP ioctl which is more efficient and faster.
Packit a62e42
If FIEMAP is not supported then filefrag will fall back to using FIBMAP.
Packit a62e42
.SH OPTIONS
Packit a62e42
.TP
Packit a62e42
.B \-B
Packit a62e42
Force the use of the older FIBMAP ioctl instead of the FIEMAP ioctl for
Packit a62e42
testing purposes.
Packit a62e42
.TP
Packit a62e42
.BI \-b blocksize
Packit a62e42
Use
Packit a62e42
.I blocksize
Packit a62e42
in bytes for output instead of the filesystem blocksize.
Packit a62e42
For compatibility with earlier versions of
Packit a62e42
.BR filefrag ,
Packit a62e42
if
Packit a62e42
.I blocksize
Packit a62e42
is unspecified it defaults to 1024 bytes.
Packit a62e42
.TP
Packit a62e42
.B \-e
Packit a62e42
Print output in extent format, even for block-mapped files.
Packit a62e42
.TP
Packit a62e42
.B \-k
Packit a62e42
Use 1024\-byte blocksize for output (identical to '\-b 1024').
Packit a62e42
.TP
Packit a62e42
.B \-s
Packit a62e42
Sync the file before requesting the mapping.
Packit a62e42
.TP
Packit a62e42
.B \-v
Packit a62e42
Be verbose when checking for file fragmentation.
Packit a62e42
.TP
Packit a62e42
.B \-x
Packit a62e42
Display mapping of extended attributes.
Packit a62e42
.TP
Packit a62e42
.B \-X
Packit a62e42
Display extent block numbers in hexadecimal format.
Packit a62e42
.SH AUTHOR
Packit a62e42
.B filefrag
Packit a62e42
was written by Theodore Ts'o <tytso@mit.edu>.