2 .TH FILEFRAG 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
4 filefrag \- report on file fragmentation
18 reports on how badly fragmented a particular file might be. It makes
19 allowances for indirect blocks for ext2 and ext3 filesystems, but can be
20 used on files for any filesystem.
24 program initially attempts to get the
25 extent information using FIEMAP ioctl which is more efficient and faster.
26 If FIEMAP is not supported then filefrag will fall back to using FIBMAP.
30 Force the use of the older FIBMAP ioctl instead of the FIEMAP ioctl for
36 in bytes, or with [KMG] suffix, up to 1GB for output instead of the
37 filesystem blocksize. For compatibility with earlier versions of
41 is unspecified it defaults to 1024 bytes.
44 Print output in extent format, even for block-mapped files.
47 Display the contents of ext4's extent status cache. This feature is not
48 supported on all kernels, and is only supported on ext4 file systems.
52 Pre-load the ext4's extent status cache for the file. This feature is not
53 supported on all kernels, and is only supported on ext4 file systems.
55 Use 1024\-byte blocksize for output (identical to '\-b 1024').
58 Sync the file before requesting the mapping.
61 Be verbose when checking for file fragmentation.
64 Display mapping of extended attributes.
67 Display extent block numbers in hexadecimal format.
70 was written by Theodore Ts'o <tytso@mit.edu>.