1FILEFRAG(8)                 System Manager's Manual                FILEFRAG(8)
2
3
4

NAME

6       filefrag - report on file fragmentation
7

SYNOPSIS

9       filefrag [ -bblocksize ] [ -BeksvxX ] [ files...  ]
10

DESCRIPTION

12       filefrag  reports  on  how badly fragmented a particular file might be.
13       It makes allowances for indirect blocks for ext2 and ext3  filesystems,
14       but can be used on files for any filesystem.
15
16       The  filefrag  program initially attempts to get the extent information
17       using FIEMAP ioctl which is more efficient and faster.   If  FIEMAP  is
18       not supported then filefrag will fall back to using FIBMAP.
19

OPTIONS

21       -B     Force  the  use  of the older FIBMAP ioctl instead of the FIEMAP
22              ioctl for testing purposes.
23
24       -bblocksize
25              Use blocksize in bytes, or with [KMG] suffix, up to 1GB for out‐
26              put instead of the filesystem blocksize.  For compatibility with
27              earlier versions of filefrag, if  blocksize  is  unspecified  it
28              defaults to 1024 bytes.
29
30       -e     Print output in extent format, even for block-mapped files.
31
32       -k     Use 1024-byte blocksize for output (identical to '-b 1024').
33
34       -s     Sync the file before requesting the mapping.
35
36       -v     Be verbose when checking for file fragmentation.
37
38       -x     Display mapping of extended attributes.
39
40       -X     Display extent block numbers in hexadecimal format.
41

AUTHOR

43       filefrag was written by Theodore Ts'o <tytso@mit.edu>.
44
45
46
47E2fsprogs version 1.45.6          March 2020                       FILEFRAG(8)
Impressum